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.
Merge pull request #1998 from dan-t/master

Pretty print fixes
Merge pull request #1995 from mcox/pkgconfig-bugfix

enable pkgconfig-depends for tests and benchmarks