Skip to content

Commit

Permalink
[compile] fix logic of verboseness
Browse files Browse the repository at this point in the history
  • Loading branch information
Vindaar committed Dec 2, 2023
1 parent 86817f4 commit 0a84aed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/latexdsl/latex_compiler.nim
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ proc compile*(fname, body: string, tmpl = getStandaloneTmpl(),

var generated = false
template checkAndRun(cmd: untyped): untyped =
var cfg = { dokCommand, dokError, dokOutput, dokRuntime }
if not verbose:
cfg.excl dokOutput
var cfg = { dokCommand, dokError, dokRuntime }
if verbose:
cfg.incl dokOutput
var
res: string
err: int
Expand Down

0 comments on commit 0a84aed

Please sign in to comment.