[gtk-doc] xsl: Enable ToC generation on empty <toc/> elements
- From: Stefan Kost <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] xsl: Enable ToC generation on empty <toc/> elements
- Date: Mon, 27 Apr 2015 19:44:20 +0000 (UTC)
commit b756620ed4cdddf65e8628fdaafd4cd36bdde423
Author: Emanuele Aina <emanuele aina collabora com>
Date: Sat Apr 25 17:52:29 2015 +0200
xsl: Enable ToC generation on empty <toc/> elements
When a section grows longer, it may be useful to include a table of
content at the top. By processing empty <toc/> elements to automatically
generate a proper table of contents we let authors to customize the
behaviour case-by-case.
https://bugzilla.gnome.org/show_bug.cgi?id=748456
gtk-doc-single.xsl | 1 +
gtk-doc.xsl | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk-doc-single.xsl b/gtk-doc-single.xsl
index 7d9efc6..3e12ccb 100644
--- a/gtk-doc-single.xsl
+++ b/gtk-doc-single.xsl
@@ -21,6 +21,7 @@
part toc
reference toc
</xsl:param>
+ <xsl:param name="process.empty.source.toc">1</xsl:param>
<xsl:param name="default.encoding" select="'UTF-8'"/>
<xsl:param name="chapter.autolabel" select="0"/>
diff --git a/gtk-doc.xsl b/gtk-doc.xsl
index 9f3f3e1..55b1813 100644
--- a/gtk-doc.xsl
+++ b/gtk-doc.xsl
@@ -30,6 +30,7 @@
part toc
reference toc
</xsl:param>
+ <xsl:param name="process.empty.source.toc">1</xsl:param>
<xsl:param name="chunker.output.encoding" select="'UTF-8'"/>
<xsl:param name="chunker.output.indent" select="'yes'"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]