]> granicus.if.org Git - docbook-dsssl/commit
Prevent "sticky" fonts changes. (closes #956070; thanks to Sam
authorMichael Smith <xmldoc@users.sourceforge.net>
Tue, 24 May 2005 09:40:55 +0000 (09:40 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Tue, 24 May 2005 09:40:55 +0000 (09:40 +0000)
commit82048457e9c7812f3cd07f726d132b60f4ac8dde
tree3d79de25ed3b53785961d96c9d558cb7e8544488
parent04823ab734eba3d9b58daf37c3e5922c27b1fa14
Prevent "sticky" fonts changes. (closes #956070; thanks to Sam
Steingold for reporting the problem, and for his patience...)

::Problem:
  Sometimes a bold or italic font change inadvertently ends up
  becoming "sticky" such that a following chunk of text that
  should just be rendered as plain text instead gets
  boldfaced/italicized.

::Cause:
  Font changes were simply being nested, as they are in HTML.
  While that works for HTML, it doesn't work for roff, where
  font-change instructions aren't actually intended to nest.

::Fix:
  Attempted to un-nest bold/italic font changes. When the manpages
  stylesheets encounter node sets that need to be boldfaced or
  italicized, they now put the \fBfoo\fR \fIbar\fR groff
  bold/italic instructions separately around each node in the set.

  This may not be a complete fix for the problem. In fact, it may
  cause other problems. Please test :^)
xsl/manpages/docbook.xsl
xsl/manpages/sect23.xsl
xsl/manpages/synop.xsl