Non-breaking spaces in MathML formula were not being preserved -- they were converting to regular spaces which could be normalized away in course of parsing, defeating the attempt to achieve particular spacing with them. This changes to avoid decoding entities in mathml formula string at all, as it is an XML string. (In fact decoding < could render it invalid XML, though this seems never to have been encountered)
To be safe, also modifies the decodeEntities function which is applied to formula content to map thenbsp; entity to a unicode non-breaking space character, rather than a regular space.
Non-breaking spaces in MathML formula were not being preserved -- they were converting to regular spaces which could be normalized away in course of parsing, defeating the attempt to achieve particular spacing with them. This changes to avoid decoding entities in mathml formula string at all, as it is an XML string. (In fact decoding
<
could render it invalid XML, though this seems never to have been encountered)To be safe, also modifies the decodeEntities function which is applied to formula content to map the
nbsp;
entity to a unicode non-breaking space character, rather than a regular space.