From 82048457e9c7812f3cd07f726d132b60f4ac8dde Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Tue, 24 May 2005 09:40:55 +0000 Subject: [PATCH] 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 | 32 +++++++++++++++----------------- xsl/manpages/sect23.xsl | 6 +++--- xsl/manpages/synop.xsl | 20 ++++++++++---------- 3 files changed, 28 insertions(+), 30 deletions(-) diff --git a/xsl/manpages/docbook.xsl b/xsl/manpages/docbook.xsl index 25d07a5f5..9b5b44499 100644 --- a/xsl/manpages/docbook.xsl +++ b/xsl/manpages/docbook.xsl @@ -22,21 +22,19 @@ --> - - - - \fB - - \fR + + \fB + + \fR + - - - - \fI - - \fR + + \fI + + \fR + @@ -104,7 +102,7 @@ --> + self::variablelist|self::simplelist[@type !='inline']"> @@ -387,20 +385,20 @@ - \fI\fR + - \fB\fR + - \fB\fR + - \fI\fR + diff --git a/xsl/manpages/sect23.xsl b/xsl/manpages/sect23.xsl index 23079bf28..b9c1766ed 100644 --- a/xsl/manpages/sect23.xsl +++ b/xsl/manpages/sect23.xsl @@ -115,7 +115,7 @@ - \fB\fR + @@ -137,11 +137,11 @@ - \fB\fR + - \fI\fR + diff --git a/xsl/manpages/synop.xsl b/xsl/manpages/synop.xsl index d4562810a..dc3aefb5b 100644 --- a/xsl/manpages/synop.xsl +++ b/xsl/manpages/synop.xsl @@ -1,5 +1,7 @@ @@ -90,19 +92,17 @@ - - - - \fB - - - - - - \fR + + + + + + + + -- 2.40.0