qt4cg / qtspecs

QT4 specifications
https://qt4cg.org/
Other
28 stars 15 forks source link

Seralization Parameters: Indentation, Whitespace, Newlines #1234

Open ChristianGruen opened 5 months ago

ChristianGruen commented 5 months ago

Summary of #358 and #101:

Parameter Description Values
indent-unit Character sequence to use for indentation. Pattern: (\\t\| +)
Examples: ("\t", " ", " ")
indent-attributes Indent multiple attributes
(similar: HTML Tidy’s configuration option).
Should be used with spaces as indentation characters.
"yes", "no"
line-ending Newline character. "\r\n", "\n", "\r", …

If no parameter is specified, the default of the implementation is used.

michaelhkay commented 5 months ago

What are the intended semantics of "line-ending"? Is this to be used only for line-endings generated in the course of indentation, or will it substitute for line ending characters found in the data being serialized?

ChristianGruen commented 5 months ago

will it substitute for line ending characters found in the data being serialized?

I imagine this would be what most users would expect.