Geoff-lists wrote: > What is happening is I enter two spaces after a period, save and close > the file, open the file and the two spaces have been changed to one > space. In particular this is occuring inside the <para/> element, which > I thought was sacrosant. > > For example, I enter: > <para>Blah blah. Blah blah.</para> > > After closing and opening the file I have: > <para>Blah blah. Blah blah.</para> > > When transformed to html output I expect the double spacing to be > removed, as double spacing is not recognised in html - but it is > recognised in print formats, which is why I am including them.
Unless an element has attribute xml:space="preserve", the XML application is free to do anything it wants with whitespace. XMLmind XML Editor for example always compresses whitespace. Unlike for a DocBook <programlisting> for example, there is no way to preserve space in a DocBook <para>. If you really want two spaces, do not use the plain space character, instead use 2 non-breaking spaces (with XMLmind XML Editor, press Ctrl-SPACE twice. Do not worry if you see small dots. This means that you have 2 nbsp.) or use characters such as mdash.

