Commit e501e964 authored by unknown's avatar unknown

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.
parent 0ee35d6d
...@@ -45,6 +45,11 @@ print STDERR "Fixing spacing problem with titles...\n"; ...@@ -45,6 +45,11 @@ print STDERR "Fixing spacing problem with titles...\n";
$data =~ s{</(\w+)>(\w{2,})} $data =~ s{</(\w+)>(\w{2,})}
{</$1> $2}gs; {</$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 # 2002-01-30 arjen@mysql.com
print STDERR "Removing COLSPEC...\n"; print STDERR "Removing COLSPEC...\n";
$data =~ s{\n *<colspec colwidth=\"[0-9]+\*\">} $data =~ s{\n *<colspec colwidth=\"[0-9]+\*\">}
...@@ -65,10 +70,10 @@ print STDERR "Removing lf before /PARA in ENTRY...\n"; ...@@ -65,10 +70,10 @@ print STDERR "Removing lf before /PARA in ENTRY...\n";
$data =~ s{(<entry><para>(.+?))\n(</para></entry>)} $data =~ s{(<entry><para>(.+?))\n(</para></entry>)}
{$1$3}gs; {$1$3}gs;
# 2002-01-31 arjen@mysql.com # 2002-01-31 arjen@mysql.com (2002-02-15 added \n stuff)
print STDERR "Removing whitespace before /PARA...\n"; print STDERR "Removing whitespace before /PARA if not on separate line...\n";
$data =~ s{[ ]+</para>} $data =~ s{([^\n ])[ ]+</para>}
{</para>}gs; {$1</para>}gs;
# 2002-01-31 arjen@mysql.com # 2002-01-31 arjen@mysql.com
print STDERR "Removing empty PARA in ENTRY...\n"; print STDERR "Removing empty PARA in ENTRY...\n";
......
...@@ -168,7 +168,7 @@ The following list describes some useful sections of the manual: ...@@ -168,7 +168,7 @@ The following list describes some useful sections of the manual:
@itemize @bullet @itemize @bullet
@item @item
For information about the company behind the @code{MySQL Database Server}, For information about the company behind the @code{MySQL Database Server},
see @ref{What is MySQL AB}. see @ref{What is MySQL AB}.
@item @item
For a discussion about the capabilities of the @code{MySQL Database Server}, For a discussion about the capabilities of the @code{MySQL Database Server},
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment