Joel de Guzman wrote:
I did some more investigation and it seems now that Joao's
nbsp handling tweak (style sheets?) is not doing the right
thing. For example, the xml output:

    <link linkend="linked">linked</link> <link
    linkend="linked">linked</link>

( *notice the space between </link> and <link )

results to

    linkedlinked

That should be:

    linked linked

right?

Disabling the post processor did not really help (Eric's latest tweak).
It wasn't the problem. For example:

   [link linked]   [link linked]

generated (no post processing):

    <link linkend="linked">linked</link>   <link
    linkend="linked">linked</link></para>

and (with post processing):

    <link linkend="linked">linked</link> <link
    linkend="linked">linked</link>

Both are correct results, AFAICT, but the final html
result removes the spaces:

    linkedlinked

I remember now that I worked around the problem by detecting
"> <" and replacing it with ">&nbsp;<". My latest tweak fixed that
to detect *one or more* spaces between the brackets. I think that
workaround in Qbk is not needed if Joao's style-sheet tweaks are
fixed.

Unless of course, I'm missing something :)

Thoughts? Joao?

I haven't looked into the OP's issue in particular, but here's my best guess anyway.

BoostBook's stylesheets remove whitespace in a lot of places (basically at the start and end of tags and in-between consecutive tags). We have been working around this in QuickBook by outputting &nbsp; at places.

My first (and only) fix to a related issue contemplated code snippets (<programlisting>), where I explicitly asked the stylesheet to preserve whitespace. One way to fix similar issues is to add the relevant xml elements to the preserve-space list in tools/boostbook/xsl/docbook.xsl:line 23.

Another way to do this is to do what DocBook does and that is to have preserve-space on all elements (elements="*") and single out the ones where it is not significant with a strip-space. Perhaps it is time we went this way as well.

I'm hoping that an empty strip-space list won't do much harm because we still have the DocBook safety net below us. This should also render obsolete all nbsp handling in QuickBook.

Comments?


João


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Boost-docs mailing list
[email protected]
Unsubscribe and other administrative requests: 
https://lists.sourceforge.net/lists/listinfo/boost-docs

Reply via email to