Skip to content

Commit

Permalink
Fix #13631 (#13789)
Browse files Browse the repository at this point in the history
  • Loading branch information
juancarlospaco authored Mar 29, 2020
1 parent cfa1a82 commit 8c719fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/packages/docutils/rstgen.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1115,10 +1115,10 @@ proc renderRstToOut(d: PDoc, n: PRstNode, result: var string) =
"\\href{$2}{$1}", [tmp0, tmp1])
of rnDirArg, rnRaw: renderAux(d, n, result)
of rnRawHtml:
if d.target != outLatex:
if d.target != outLatex and not lastSon(n).isNil:
result.add addNodes(lastSon(n))
of rnRawLatex:
if d.target == outLatex:
if d.target == outLatex and not lastSon(n).isNil:
result.add addNodes(lastSon(n))

of rnImage, rnFigure: renderImage(d, n, result)
Expand Down

0 comments on commit 8c719fc

Please sign in to comment.