Apache OpenOffice (AOO) Bugzilla – Issue 51689
Extra characters inserted in cells during export to xhtml
Last modified: 2013-08-07 15:12:27 UTC
Two extra characters (\xC2\xA0) are inserted into each cell's value during export to xhtml. Start with a new spreadsheet. Enter "Test1" in cell A1. Export to xhtml. Now look at the .xhtml file in a hex editor. Note the two characters starting at 550 below. (your address may vary) 00000540: 6566 6175 6c74 223e 3c70 3e54 6573 7431 efault"><p>Test1 00000550: c2a0 3c2f 703e 3c2f 7464 3e3c 2f74 723e ..</p></td></tr>
openoffice.org1.9.113 Running on Fedora Core 2
Hi Swante, seems to be yours. Frank
Also present in 1.9.118.
BACKGROUND: Empty paragraph do not provoke a carridge return. To enforce this behavior a non-breakable space (i.e or  ) have been added (i.e. <xsl:text> </xsl:text>) to an 'empty' paragraph. FIX: Unfortunately the condition to check for empty paragraph in xhtml/body.xsl was erroneous <xsl:when test="*"> test only for all paragraphs without child elements it have to be exchanged (2 times) to <xsl:when test="* or text()"> Many thanks for pointing this out!