diff options
author | Stuart Rackham <srackham@methods.co.nz> | 2007-11-09 18:14:46 +1300 |
---|---|---|
committer | Stuart Rackham <srackham@methods.co.nz> | 2007-11-09 18:14:46 +1300 |
commit | f1e1a789e78d531e2b8c855a96ea2449c090cdbf (patch) | |
tree | 8b60bd5ffc3c89345107e8295cae5d91986c2e31 | |
parent | 892b38c5b160f0a7a673a2ea4427a7e67b16fcd4 (diff) | |
download | asciidoc-py3-8.2.4.tar.gz |
dropped outdated manpage-sp patch8.2.4
-rw-r--r-- | docbook-xsl/asciidoc-docbook-xsl.txt | 20 | ||||
-rw-r--r-- | docbook-xsl/manpage-sp.patch | 41 |
2 files changed, 0 insertions, 61 deletions
diff --git a/docbook-xsl/asciidoc-docbook-xsl.txt b/docbook-xsl/asciidoc-docbook-xsl.txt index 0ce7b93..c2f85e2 100644 --- a/docbook-xsl/asciidoc-docbook-xsl.txt +++ b/docbook-xsl/asciidoc-docbook-xsl.txt @@ -74,23 +74,3 @@ applied from the DocBook XSL Stylesheets directory: $ 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 - -///////////////////////////////////////////////////////////////////// diff --git a/docbook-xsl/manpage-sp.patch b/docbook-xsl/manpage-sp.patch deleted file mode 100644 index 8a51c84..0000000 --- a/docbook-xsl/manpage-sp.patch +++ /dev/null @@ -1,41 +0,0 @@ -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 </xsl:text> -+ <xsl:text> .sp </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 </xsl:text> -+ <xsl:text> .sp </xsl:text> - </xsl:otherwise> - </xsl:choose> - <xsl:text>.nf </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="

." newstring="
."/> - <!-- * remove any .sp occurences that directly follow a .PP --> - <substitution oldstring=".PP
.sp" newstring=".PP"/> -+ -+ <!-- * remove any .sp occurences that directly preceed a .SH --> -+ <substitution oldstring=".sp
.SH" newstring=".SH"/> -+ <!-- * remove any .sp occurences that directly preceed a .TP --> -+ <substitution oldstring=".sp
.TP" newstring=".TP"/> -+ <!-- * remove any .sp occurences that directly preceed a .SS --> -+ <substitution oldstring=".sp
.SS" newstring=".SS"/> -+ <!-- * remove any .sp occurences that directly preceed a .sp --> -+ <substitution oldstring=".sp
.sp" newstring=".sp"/> -+ - <!-- * squeeze multiple newlines after start of no-fill (verbatim) env. --> - <substitution oldstring=".nf

" newstring=".nf
"/> - <!-- * an apostrophe at the beginning of a line gets interpreted as a --> |