]> 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)
commit6cf9e2e2d1a3afd9c9f7bdc2252c8f0b4f6fab44
tree37b4379d760284d7f452244b90a727d00432b069
parentcb6abfd451cccf28c999e571a39d7c79e6ba79d4
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