xml-lens icon indicating copy to clipboard operation
xml-lens copied to clipboard

Add more options to PrinterConfig

Open note opened this issue 7 years ago • 1 comments

Ideas of additional options in PrinterConfig:

  • add Boolean option for repairing namespaces (i.e. automatically defining used namespaces in case they're not yet defined)
  • add option which defines how to treat multiple attributes for the same elements (namely <a attr="val1" attr="val2"></a>). Exemplary behaviors - ignore it and print all of them, flatten them by concatenating them separated by spaces, use the last value, use the first value)

note avatar Jan 02 '18 12:01 note

Another option - let user decide how to print empty elements: <a></a> vs <a />.

BTW for now <a></a> is implicitly assumed.

note avatar Jan 17 '18 15:01 note