summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2020-05-28 19:00:36 -0700
committerGitHub <noreply@github.com>2020-05-28 19:00:36 -0700
commit579456d52073229bfe362d3794fae22a479dda38 (patch)
tree85da6789598d961db9543e103ee7d156ab1ba54d /compiler
parente013ebc91a22eeccc9546498994b0c561e438599 (diff)
downloadNim-579456d52073229bfe362d3794fae22a479dda38.tar.gz
fix #14485 (#14487)
Diffstat (limited to 'compiler')
-rw-r--r--compiler/renderverbatim.nim5
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/renderverbatim.nim b/compiler/renderverbatim.nim
index a78433163..974454456 100644
--- a/compiler/renderverbatim.nim
+++ b/compiler/renderverbatim.nim
@@ -66,10 +66,9 @@ proc renderNimCode*(result: var string, code: string, isLatex = false) =
     buf.addEscaped(val)
     let class = tokenClassToStr[kind]
     if isLatex:
-      result.addf "\\span$1{$2}" % [class, buf]
+      result.addf "\\span$1{$2}", [class, buf]
     else:
-      result.addf  "<span class=\"$1\">$2</span>" % [class, buf]
-
+      result.addf  "<span class=\"$1\">$2</span>", [class, buf]
   while true:
     getNextToken(toknizr, langNim)
     case toknizr.kind