Hi Henrik,

> Copying XML from PDF to code editors rarely preserve indentation,
> xml-pretty fixes that.
> (xml (in (list 'echo (req 'xml)) (xml)) 1)

great you find it useful.

The second argument can also be negative, which means "use tabs instead
of spaces for indenting".

I should mention that it works only for a subset of XML, e.g. such XML
files that are usually used for communicating structured data (like
sexp) and not general markup.  Also, whitespace can be significant
depending on the element and context, in which case the reformatted XML
would become broken.  But those are general "flaws" of XML that prevent
any reliable normalized formating/pretty printing.


UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to