Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix missing carriage return before .TE if last table cell is empty
This is an alternative to 1fc61ec, which tried to address this same issue, but introduced a regression. Before this, tables ending with an empty cell would miss a carriage return before the table closing marker (.TE), causing the table to not be closed, and rendering to be broken; ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┬─────────────────────┬─────────┐ │Col1 │ Co2 │ Col3 │ ├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼─────────────────────┼─────────┤ │row one │ │ row two │ ├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼─────────────────────┼─────────┤ │ │ │ │ ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼─────────────────────┼─────────┤ │ │ │ │ ├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼───── After this patch, tables ending with an empty cell get a carriage return added before the closing marker: ┌────────┬──────┬──────┐ │Col1 │ Col2 │ Col3 │ ├────────┼──────┼──────┤ │row one │ │ │ ├────────┼──────┼──────┤ │row two │ x │ │ └────────┴──────┴──────┘ Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
- Loading branch information