Anonymous avatar Anonymous committed df92a55

dropped outdated manpage-sp patch

Comments (0)

Files changed (2)

docbook-xsl/asciidoc-docbook-xsl.txt

 
   $ cd /usr/share/xml/docbook/stylesheet/docbook-xsl-1.72.0
   $ sudo patch -p0 < /tmp/shaded-literallayout.patch
-
-/////////////////////////////////////////////////////////////////////
-Manpage spurious .sp patch
-~~~~~~~~~~~~~~~~~~~~~~~~~~
-IMPORTANT: *Don't apply this patch*. It was designed for docbook-xsl
-1.69.1 (the previous version of docbook-xsl used with AsciiDoc) and
-does not work with 1.72.0. I don't think it's necessary with
-docbook-xsl 1.72.0.
-
-Standalone `simpara` and some nested `title` DocBook elements generate
-`.sp` groff markup without a preceding newline, the `manpage-sp.patch`
-fixes this as well as stripping out extra blank lines generated by
-some `.sp` markup elements.
-
-The patch can be applied from the DocBook XSL Stylesheets directory
-with the following command:
-
-  # patch -p0 < manpage-sp.patch
-
-/////////////////////////////////////////////////////////////////////

docbook-xsl/manpage-sp.patch

-diff -u ./manpages.ORIG/block.xsl ./manpages/block.xsl
---- ./manpages.ORIG/block.xsl	2005-11-30 17:31:23.135642494 +1300
-+++ ./manpages/block.xsl	2005-11-30 17:35:59.368886010 +1300
-@@ -37,7 +37,7 @@
-     <xsl:apply-templates/>
-   </xsl:variable>
-   <xsl:value-of select="normalize-space($content)"/>
--  <xsl:text>.sp&#10;</xsl:text>
-+  <xsl:text>&#10;.sp&#10;</xsl:text>
- </xsl:template>
- 
- <xsl:template match="address|literallayout|programlisting|screen|synopsis">
-@@ -56,7 +56,7 @@
-     <xsl:when test="parent::caption|parent::entry|parent::para|
-                     parent::td|parent::th" /> <!-- do nothing -->
-     <xsl:otherwise>
--      <xsl:text>.sp&#10;</xsl:text>
-+      <xsl:text>&#10;.sp&#10;</xsl:text>
-     </xsl:otherwise>
-   </xsl:choose>
-   <xsl:text>.nf&#10;</xsl:text>
-diff -u ./manpages.ORIG/param.xsl ./manpages/param.xsl
---- ./manpages.ORIG/param.xsl	2005-11-30 17:31:23.164638883 +1300
-+++ ./manpages/param.xsl	2005-11-30 17:58:14.345174391 +1300
-@@ -47,6 +47,16 @@
-   <substitution oldstring="&#xA;&#xA;." newstring="&#xA;."/>
-   <!-- * remove any .sp occurences that directly follow a .PP  -->
-   <substitution oldstring=".PP&#xA;.sp" newstring=".PP"/>
-+
-+  <!-- * remove any .sp occurences that directly preceed a .SH  -->
-+  <substitution oldstring=".sp&#xA;.SH" newstring=".SH"/>
-+  <!-- * remove any .sp occurences that directly preceed a .TP  -->
-+  <substitution oldstring=".sp&#xA;.TP" newstring=".TP"/>
-+  <!-- * remove any .sp occurences that directly preceed a .SS  -->
-+  <substitution oldstring=".sp&#xA;.SS" newstring=".SS"/>
-+  <!-- * remove any .sp occurences that directly preceed a .sp  -->
-+  <substitution oldstring=".sp&#xA;.sp" newstring=".sp"/>
-+
-   <!-- * squeeze multiple newlines after start of no-fill (verbatim) env. -->
-   <substitution oldstring=".nf&#xA;&#xA;" newstring=".nf&#xA;"/>
-   <!-- * an apostrophe at the beginning of a line gets interpreted as a -->
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.