summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
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