diff options
author | Andrey Makarov <ph.makarov@gmail.com> | 2021-06-01 21:47:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-01 20:47:23 +0200 |
commit | ba3ec7b04954a9a60adb6e1a64405f7644f799ee (patch) | |
tree | fb3a4f82dda1d12001b9a918b4546c0e386b8e78 /compiler | |
parent | c2e3dc0ed16a854981769b426e9e327663447df7 (diff) | |
download | Nim-ba3ec7b04954a9a60adb6e1a64405f7644f799ee.tar.gz |
docs: Latex generation improvements (#18141)
* docs: improve Latex generation * make it work on Windows + fix ] escaping * minor fixes with escapes and style
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/docgen.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/docgen.nim b/compiler/docgen.nim index e07db9188..18c568ba0 100644 --- a/compiler/docgen.nim +++ b/compiler/docgen.nim @@ -549,7 +549,7 @@ proc getAllRunnableExamplesImpl(d: PDoc; n: PNode, dest: var string, var msg = "Example:" if rdoccmd.len > 0: msg.add " cmd: " & rdoccmd dispA(d.conf, dest, "\n<p><strong class=\"examples_text\">$1</strong></p>\n", - "\n\\textbf{$1}\n", [msg]) + "\n\n\\textbf{$1}\n", [msg]) inc d.listingCounter let id = $d.listingCounter dest.add(d.config.getOrDefault"doc.listing_start" % [id, "langNim", ""]) |