summaryrefslogtreecommitdiffstats
path: root/doc/stylesheet.xsl
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2016-09-12 23:44:33 (GMT)
committerJason Evans <jasone@canonware.com>2016-09-12 23:44:33 (GMT)
commit9ebbfca93fd98e31d2dbc2bddffcc4624df516dc (patch)
tree1dea9475e93a10bea523f42a370239ca150b7a9a /doc/stylesheet.xsl
parent3de035335255d553bdb344c32ffdb603816195d8 (diff)
downloadjemalloc-9ebbfca93fd98e31d2dbc2bddffcc4624df516dc.zip
jemalloc-9ebbfca93fd98e31d2dbc2bddffcc4624df516dc.tar.gz
jemalloc-9ebbfca93fd98e31d2dbc2bddffcc4624df516dc.tar.bz2
Change html manual encoding to UTF-8.
This works around GitHub's broken automatic reformatting from ISO-8859-1 to UTF-8 when serving static html. Remove <parameter/> from e.g. <function>malloc<parameter/></function>, add a custom template that does not append parentheses, and manually specify them, e.g. <function>malloc()</function>. This works around apparently broken XSL formatting that causes <code/> to be emitted in html (rather than <code></code>, or better yet, nothing).
Diffstat (limited to 'doc/stylesheet.xsl')
-rw-r--r--doc/stylesheet.xsl5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/stylesheet.xsl b/doc/stylesheet.xsl
index 4e334a8..bc8bc2a 100644
--- a/doc/stylesheet.xsl
+++ b/doc/stylesheet.xsl
@@ -1,6 +1,9 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:param name="funcsynopsis.style">ansi</xsl:param>
- <xsl:param name="function.parens" select="1"/>
+ <xsl:param name="function.parens" select="0"/>
+ <xsl:template match="function">
+ <xsl:call-template name="inline.monoseq"/>
+ </xsl:template>
<xsl:template match="mallctl">
"<xsl:call-template name="inline.monoseq"/>"
</xsl:template>