[yelp-xsl] Handle white space in verbatim elements.
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl] Handle white space in verbatim elements.
- Date: Thu, 11 Mar 2010 01:20:38 +0000 (UTC)
commit f778c3f729e8e22756c7869de2bf037bac090a8b
Author: brian m. carlson <sandals crustytoothpaste ath cx>
Date: Thu Mar 11 00:55:18 2010 +0000
Handle white space in verbatim elements.
Signed-off-by: brian m. carlson <sandals crustytoothpaste ath cx>
xslt/docbook/html/db2html-block.xsl | 3 +++
xslt/docbook/html/db2html-css.xsl | 1 +
2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/xslt/docbook/html/db2html-block.xsl b/xslt/docbook/html/db2html-block.xsl
index 79edd20..56d7d31 100644
--- a/xslt/docbook/html/db2html-block.xsl
+++ b/xslt/docbook/html/db2html-block.xsl
@@ -65,6 +65,9 @@ is then used by the CSS for styling.
<div>
<xsl:attribute name="class">
<xsl:value-of select="concat($class, ' ', local-name($node))"/>
+ <xsl:if test="$verbatim">
+ <xsl:text> verbatim</xsl:text>
+ </xsl:if>
</xsl:attribute>
<xsl:choose>
<xsl:when test="$dir = 'ltr' or $dir = 'rtl'">
diff --git a/xslt/docbook/html/db2html-css.xsl b/xslt/docbook/html/db2html-css.xsl
index faf4d0b..420ea7b 100644
--- a/xslt/docbook/html/db2html-css.xsl
+++ b/xslt/docbook/html/db2html-css.xsl
@@ -212,6 +212,7 @@ div.programlisting .userinput {
font-weight: bold;
color: </xsl:text><xsl:value-of select="$theme.color.text_light"/><xsl:text>;
}
+div.verbatim { white-space: pre; }
<!-- == unsorted == -->
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]