Fix pretty printing with showFreeText

Remove the special casing for strings starting with a newline.
Handle all newlines in strings the same way, by replacing them
with a '.'.
Pretty print the field 'depends' nested
Fix pretty printing of flags

Pretty print the fields of flags nested.