#444 Character maps and HTML indentation

v8.6.1
closed
Michael Kay
5
2012-10-08
2005-12-21
Michael Kay
No

There is an interaction between character maps and HTML
(or XHTML) indentation.

A string created by applying a character map should not
be subjected to escaping of special characters,
allowing it to contain textual XML markup. However, if
the string is part of a text node that contains long
lines of text, the HTML indenter will split it into
multiple lines. If the line split (which will always be
at a space) occurs within the replacement string of the
character map, then any special characters occurring
after the line split will be escaped.

Source code fixed; the workaround is to use indent="no"
in such cases.

Michael Kay

Discussion