summary refs log tree commit diff stats
path: root/lib/packages/docutils
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2021-10-03 07:21:08 +0200
committerGitHub <noreply@github.com>2021-10-03 07:21:08 +0200
commite9268b52d9a34e7e851105d569bccced4b7261fd (patch)
tree57c2ed74348f489ef9d3c7969d9ffc226b7a04eb /lib/packages/docutils
parent5c4692fad4c807a010d58d553e92360128699197 (diff)
downloadNim-e9268b52d9a34e7e851105d569bccced4b7261fd.tar.gz
with this patch :idx: can be used for the index generation for LaTeX (#18946)
Diffstat (limited to 'lib/packages/docutils')
-rw-r--r--lib/packages/docutils/rstgen.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/packages/docutils/rstgen.nim b/lib/packages/docutils/rstgen.nim
index 3734392c3..7d7eb4fb8 100644
--- a/lib/packages/docutils/rstgen.nim
+++ b/lib/packages/docutils/rstgen.nim
@@ -406,7 +406,7 @@ proc renderIndexTerm*(d: PDoc, n: PRstNode, result: var string) =
   var term = ""
   renderAux(d, n, term)
   setIndexTerm(d, changeFileExt(extractFilename(d.filename), HtmlExt), id, term, d.currentSection)
-  dispA(d.target, result, "<span id=\"$1\">$2</span>", "$2\\label{$1}",
+  dispA(d.target, result, "<span id=\"$1\">$2</span>", "\\nimindexterm{$2}{$1}",
         [id, term])
 
 type