commit: 80e024ed24de7784c4c891a721d40816f5eab4b2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Sun Oct 10 10:27:49 2021 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Sun Oct 10 10:33:56 2021 +0000 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=80e024ed
devbook.xsl: td doesn't have a nowrap attribute in HTML 5 Problem seen with tidy from app-text/htmltidy-5.8.0-r1. Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> Makefile | 2 +- devbook.xsl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5d74d88..0a40cc3 100644 --- a/Makefile +++ b/Makefile @@ -86,7 +86,7 @@ validate: @xmllint --noout --dtdvalid devbook.dtd $(XMLS) \ && echo "xmllint validation successful" -# Run app-text/tidy-html5 on the output to detect mistakes. +# Run app-text/htmltidy on the output to detect mistakes. # We have to loop through them because otherwise tidy won't # tell you which file contains a mistake. tidy: $(HTMLS) $(ECLASS_HTMLS) diff --git a/devbook.xsl b/devbook.xsl index 5e8b260..1ebbb3b 100644 --- a/devbook.xsl +++ b/devbook.xsl @@ -84,7 +84,7 @@ </xsl:if> <xsl:if test="@nowrap"> <!-- Disable word wrapping for this table item. Usage: <ti nowrap="nowrap"> --> - <xsl:attribute name="nowrap"><xsl:value-of select="@nowrap"/></xsl:attribute> + <xsl:attribute name="style">white-space:<xsl:value-of select="@nowrap"/></xsl:attribute> </xsl:if> <xsl:apply-templates/> </td>