H&M very handily converts a string of soft spaces into alternating soft/hard pairs, like this in the XML:
#160; #160; #160; #160;
(8 spaces in this example)
But if the string contains an even number of spaces, the output HTML fails to convert the final hard space, resulting in 2 soft spaces at the end of the string:
__
The result is that the double soft space collapses when rendered in HTML. So the above becomes 7 visible spaces only. This is a nuisance when tabulating info using a fixed-width font.
The problem doesn't occur if the string contains an odd number of spaces.
Difficult to explain in plain text, see attached hex dump.
regards.
Martin.
Missing hard space in XML conversion to HTML
- Martin Wynne
- Posts: 2656
- Joined: Mon May 12, 2003 3:21 pm
- Location: West of the Severn, UK
Missing hard space in XML conversion to HTML
You do not have the required permissions to view the files attached to this post.
- Alexander Halser
- EC-Software Support
- Posts: 4106
- Joined: Mon Jun 24, 2002 7:24 pm
- Location: Salzburg, Austria
- Contact:
The hard spaces are actually non-breaking spaces with a nuisance: the prohibit line breaks where they occur. Help & Manual tries to avoid exporting non-breaking spaces at the beginning of a line and next to following words. If there was an at the 6th position, it would attach to the following word and if there is a line break at this position, the next word would start at the following line with the space in front of it. Looks odd...
If you want to tabulate text with spaces and a fixed-spaced font, switch off the word-break option of the paragraph. With word-break off, Help & Manual exports any space in the line as a non-breaking space.
If you want to tabulate text with spaces and a fixed-spaced font, switch off the word-break option of the paragraph. With word-break off, Help & Manual exports any space in the line as a non-breaking space.
Alexander Halser
Senior Software Architect, EC Software GmbH
Senior Software Architect, EC Software GmbH
- Martin Wynne
- Posts: 2656
- Joined: Mon May 12, 2003 3:21 pm
- Location: West of the Severn, UK