init(_:addNewlines:)
Initialize a new printer using the existing state from another printer but with support to control the behavior of addNewlines.
init(_ parent: CodePrinter, addNewlines newlines: Bool) Parameters
This can be useful to use with generation subtasks, so see if they actually generate something (via isEmpty) to then optionally add it back into the parent with whatever surounding content.
This is most useful to then use append to add the new content.