Skip to content

Commit ab326e0

Browse files
committed
fix longtable matching
1 parent f336aa6 commit ab326e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/format/pdf/format-pdf.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ const longTableSidenoteProcessor = () => {
683683
}
684684
case "capturing":
685685
capturedLines.push(line);
686-
if (line.match(/^\\end{longtable}.*$/)) {
686+
if (line.match(/[^\\n]\\end{longtable}.*$/)) {
687687
state = "scanning";
688688

689689
// read the whole figure and clear any capture state

0 commit comments

Comments
 (0)