diff --git a/doc/src/sgml/errcodes.sgml b/doc/src/sgml/errcodes.sgml
index 16cb6c7..2388daf 100644
--- a/doc/src/sgml/errcodes.sgml
+++ b/doc/src/sgml/errcodes.sgml
@@ -53,24 +53,8 @@
PostgreSQL Error Codes
-
-
-
-
+ &errcodes-table;
-
-
- Error Code
- Condition Name
-
-
-
-
-
- &errcodes-table;
-
-
-
diff --git a/doc/src/sgml/generate-errcodes-table.pl b/doc/src/sgml/generate-errcodes-table.pl
index b9c14d3..91cda36 100644
--- a/doc/src/sgml/generate-errcodes-table.pl
+++ b/doc/src/sgml/generate-errcodes-table.pl
@@ -6,11 +6,51 @@
use warnings;
use strict;
+sub start_tgroup($) {
+ my $sname = shift;
+
+ print <<'EOF';
+
+
+
+
+
+
+
+
+
+
+EOF
+
+ print " $sname\n";
+
+ print <<'EOF';
+
+
+ Error Code
+ Condition Name
+
+
+
+
+EOF
+}
+
+sub stop_tgroup() {
+
+ print <<'EOF';
+
+
+EOF
+
+}
+
print
"\n";
open my $errcodes, $ARGV[0] or die;
+my $in_sect = 0;
while (<$errcodes>)
{
chomp;
@@ -32,11 +72,12 @@ while (<$errcodes>)
# Wrap PostgreSQL in
s/PostgreSQL/PostgreSQL<\/>/g;
- print "\n\n";
- print "\n";
- print "";
- print "$_>\n";
- print "
\n";
+ if ($in_sect)
+ {
+ stop_tgroup;
+ }
+ start_tgroup($_);
+ $in_sect = 1;
next;
}
@@ -56,4 +97,6 @@ while (<$errcodes>)
print "\n";
}
+stop_tgroup();
+
close $errcodes;
diff --git a/doc/src/sgml/stylesheet.css b/doc/src/sgml/stylesheet.css
index 0fd0f01..4ad67fe 100644
--- a/doc/src/sgml/stylesheet.css
+++ b/doc/src/sgml/stylesheet.css
@@ -94,3 +94,7 @@ PRE.LITERALLAYOUT, .SCREEN, .SYNOPSIS, .PROGRAMLISTING {
VAR { font-family: monospace; font-style: italic; }
/* Konqueror's standard style for ACRONYM is italic. */
ACRONYM { font-style: inherit; }
+
+/* tgroup-ed table of error codes */
+th.errcodes_errorcode { width: 7em; }
+th.errcodes_condname { width: 50em; }
diff --git a/doc/src/sgml/stylesheet.dsl b/doc/src/sgml/stylesheet.dsl
index 29e885d..1c4a2e6 100644
--- a/doc/src/sgml/stylesheet.dsl
+++ b/doc/src/sgml/stylesheet.dsl
@@ -199,6 +199,7 @@
(define use-output-dir #t)
(define %output-dir% "html")
(define html-index-filename "../HTML.index")
+(define %phrase-propagates-style% #t)
;; Only build HTML.index or the actual HTML output, not both. Saves a