Prettyprinter formatting and layout logic
