parent
cfa1a827dc
commit
8c719fce54
1 changed files with 2 additions and 2 deletions
|
|
@ -1115,10 +1115,10 @@ proc renderRstToOut(d: PDoc, n: PRstNode, result: var string) =
|
||||||
"\\href{$2}{$1}", [tmp0, tmp1])
|
"\\href{$2}{$1}", [tmp0, tmp1])
|
||||||
of rnDirArg, rnRaw: renderAux(d, n, result)
|
of rnDirArg, rnRaw: renderAux(d, n, result)
|
||||||
of rnRawHtml:
|
of rnRawHtml:
|
||||||
if d.target != outLatex:
|
if d.target != outLatex and not lastSon(n).isNil:
|
||||||
result.add addNodes(lastSon(n))
|
result.add addNodes(lastSon(n))
|
||||||
of rnRawLatex:
|
of rnRawLatex:
|
||||||
if d.target == outLatex:
|
if d.target == outLatex and not lastSon(n).isNil:
|
||||||
result.add addNodes(lastSon(n))
|
result.add addNodes(lastSon(n))
|
||||||
|
|
||||||
of rnImage, rnFigure: renderImage(d, n, result)
|
of rnImage, rnFigure: renderImage(d, n, result)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue