normalizeSpacerunSpans( htmlDocument )
Normalizes spacing in special Word
<span style='mso-spacerun:yes'>\s+</span>) by replacing all spaces with
pairs. This prevents spaces from being removed during further DOM/View processing (see especially
htmlDocument : Document
Documentobject in which spacing should be normalized.
normalizeSpacing( htmlString ) → String
Replaces last space preceding elements closing tag with
. Such operation prevents spaces from being removed during further DOM/View processing (see especially
_processDataFromDomText). This method also takes into account Word specific
<o:p></o:p>empty tags. Additionally multiline sequences of spaces and new lines between tags are removed (see #39 and #40).
htmlString : String
HTML string in which spacing should be normalized.
Input HTML with spaces normalized.