OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] make.clean.html and Firefox handling of white-space: pre ?


Hi Mark,
The 'make.clean.html=1' setting replaces <pre> with <div> and class attribute in the HTML output. What sort of workaround did you have in mind? Adding another param that would keep make.clean.html for other things but override this output to <pre>?

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net


----- Original Message ----- From: "Mark Craig" <mark.craig@gmail.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Friday, February 10, 2012 5:17 AM
Subject: [docbook-apps] make.clean.html and Firefox handling of white-space: pre ?


Hello,

I liked setting <xsl:param name="make.clean.html" select="1" /> and using "white-space: pre;" in the CSS. Of course, I did this expecting readers to be able to copy/paste the pre formatted content in a sort of WYSIWYG way.

But I didn't test in Firefox until a reviewer mentioned that all the newlines were gone when he pasted. Then I saw https://bugzilla.mozilla.org/show_bug.cgi?id=116083 : copy paste of CSS "white-space: pre;" content does not preserve whitespace.

This Firefox bug has been around for some time. It doesn't seem to be going away soon. Are there any plans to work around it in a future version of the DocBook XSL stylesheets?

Regards,
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org





[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]