summaryrefslogtreecommitdiff
path: root/Docs/Support
diff options
context:
space:
mode:
authorunknown <arjen@co3064164-a.bitbike.com>2002-02-15 12:36:57 +1000
committerunknown <arjen@co3064164-a.bitbike.com>2002-02-15 12:36:57 +1000
commite501e96425e0b1b86b70a183ec9338dcbae1d11c (patch)
treeafdeb068fbab67830600af50c6b0067c3dd11424 /Docs/Support
parent0ee35d6da9757619ee1525e87d49b307e80264fb (diff)
downloadmariadb-git-e501e96425e0b1b86b70a183ec9338dcbae1d11c.tar.gz
Fixups for XML/DocBook output.
Docs/Support/docbook-fixup.pl: Added fixup for xref closing /> tag to prevent malformed XML. Improved /para whitespace removal. Docs/manual.texi: Removed double whitespace in middle of sentence.
Diffstat (limited to 'Docs/Support')
-rwxr-xr-xDocs/Support/docbook-fixup.pl13
1 files changed, 9 insertions, 4 deletions
diff --git a/Docs/Support/docbook-fixup.pl b/Docs/Support/docbook-fixup.pl
index ae4bfc26b42..1dde06a3074 100755
--- a/Docs/Support/docbook-fixup.pl
+++ b/Docs/Support/docbook-fixup.pl
@@ -45,6 +45,11 @@ print STDERR "Fixing spacing problem with titles...\n";
$data =~ s{</(\w+)>(\w{2,})}
{</$1> $2}gs;
+# 2002-02-15 arjen@mysql.com
+print STDERR "Adding closing / to XREF...\n";
+$data =~ s{<xref (.+?)>}
+ {<xref $1 />}gs;
+
# 2002-01-30 arjen@mysql.com
print STDERR "Removing COLSPEC...\n";
$data =~ s{\n *<colspec colwidth=\"[0-9]+\*\">}
@@ -65,10 +70,10 @@ print STDERR "Removing lf before /PARA in ENTRY...\n";
$data =~ s{(<entry><para>(.+?))\n(</para></entry>)}
{$1$3}gs;
-# 2002-01-31 arjen@mysql.com
-print STDERR "Removing whitespace before /PARA...\n";
-$data =~ s{[ ]+</para>}
- {</para>}gs;
+# 2002-01-31 arjen@mysql.com (2002-02-15 added \n stuff)
+print STDERR "Removing whitespace before /PARA if not on separate line...\n";
+$data =~ s{([^\n ])[ ]+</para>}
+ {$1</para>}gs;
# 2002-01-31 arjen@mysql.com
print STDERR "Removing empty PARA in ENTRY...\n";