diff --git a/doc/xsltproc.1 b/doc/xsltproc.1
index f299d719..f506946e 100644
--- a/doc/xsltproc.1
+++ b/doc/xsltproc.1
@@ -191,7 +191,40 @@ default catalog.
.SH "DIAGNOSTICS"
.PP
\fBxsltproc\fR's return codes provide information that can be used when calling it from scripts.
-Errorcode: \fB0\fRError: No errorErrorcode: \fB1\fRError: No argumentErrorcode: \fB2\fRError: Too many parametersErrorcode: \fB3\fRError: Unknown optionErrorcode: \fB4\fRError: Failed to parse the stylesheetErrorcode: \fB5\fRError: Error in the stylesheetErrorcode: \fB6\fRError: Error in one of the documentsErrorcode: \fB7\fRError: Unsupported xsl:output methodErrorcode: \fB8\fRError: String parameter contains both quote and double\-quotesErrorcode: \fB9\fRError: Internal processing errorErrorcode: \fB10\fRError: Processing was stopped by a terminating message.SH "SEE ALSO"
+.TP
+\fB0\fR
+No error (normal operation)
+.TP
+\fB1\fR
+No argument
+.TP
+\fB2\fR
+Too many parameters
+.TP
+\fB3\fR
+Unknown option
+.TP
+\fB4\fR
+Failed to parse the stylesheet
+.TP
+\fB5\fR
+Error in the stylesheet
+.TP
+\fB6\fR
+Error in one of the documents
+.TP
+\fB7\fR
+Unsupported xsl:output method
+.TP
+\fB8\fR
+String parameter contains both quote and double\-quotes
+.TP
+\fB9\fR
+Internal processing error
+.TP
+\fB10\fR
+Processing was stopped by a terminating message
+.SH "SEE ALSO"
.PP
\fBlibxslt\fR(3)
.SH "AUTHOR"
diff --git a/doc/xsltproc.xml b/doc/xsltproc.xml
index 8de1a70b..b1fa4861 100644
--- a/doc/xsltproc.xml
+++ b/doc/xsltproc.xml
@@ -439,55 +439,86 @@
&xsltproc;'s return codes provide information that can be used when
calling it from scripts.
-
-
- Errorcode
- Error
-
- 0
- No error
-
-
- 1
- No argument
-
-
- 2
- Too many parameters
-
-
- 3
- Unknown option
-
-
- 4
- Failed to parse the stylesheet
-
-
- 5
- Error in the stylesheet
-
-
- 6
- Error in one of the documents
-
-
- 7
- Unsupported xsl:output method
-
-
- 8
- String parameter contains both quote and double-quotes
-
-
- 9
- Internal processing error
-
-
- 10
- Processing was stopped by a terminating message
-
-
+
+
+
+ 0
+
+ No error (normal operation)
+
+
+
+
+ 1
+
+ No argument
+
+
+
+
+ 2
+
+ Too many parameters
+
+
+
+
+ 3
+
+ Unknown option
+
+
+
+
+ 4
+
+ Failed to parse the stylesheet
+
+
+
+
+ 5
+
+ Error in the stylesheet
+
+
+
+
+ 6
+
+ Error in one of the documents
+
+
+
+
+ 7
+
+ Unsupported xsl:output method
+
+
+
+
+ 8
+
+ String parameter contains both quote and double-quotes
+
+
+
+
+ 9
+
+ Internal processing error
+
+
+
+
+ 10
+
+ Processing was stopped by a terminating message
+
+
+
+