File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -542,17 +542,18 @@ proc toStr*(self: PDBlockTable, indent: int = 0): string =
542
542
var rowCount = 0
543
543
defer :
544
544
if captionString.len () > 0 :
545
- result = [ " |caption " & captionString, result .strip (), " |end" ]. join ( " \n " )
545
+ result = & " \n |caption { captionString} \n { result .strip ()} \n |end\n\n "
546
546
var accumulator = newSeq [string ]()
547
547
var headCounts = newSeq [int ]()
548
+ result .add (" \n " )
548
549
result .add (tableShortColSpec (col))
549
550
accumulator.add (fillTable (head[1 ], colCount, rowCount).map (bootstrapCell).join (" \n " ))
550
551
rowCount += head[1 ].len ()
551
552
for tbody in body:
552
553
accumulator.add (tbody.parseTableBody (colCount, rowCount))
553
554
rowCount += tbody[2 ].len () + tbody[3 ].len ()
554
555
defer :
555
- result = result & " \n " & accumulator.join (" \n +hline2\n " )
556
+ result = result & " \n " & accumulator.join (" \n +hline2\n " ) & " \n\n "
556
557
557
558
proc toStr * (self: PDBlock , indent: int = 0 ): string =
558
559
case self.t:
You can’t perform that action at this time.
0 commit comments