Fix for #28 (table is removed when at the end)

This commit is contained in:
Dimitry Ivanov 2018-03-09 12:37:58 +03:00
parent 79fceb6f69
commit e7f6f728e0

View File

@ -331,7 +331,11 @@ public class SpannableMarkdownVisitor extends AbstractVisitor {
visitChildren(node); visitChildren(node);
if (pendingTableRow != null) { if (pendingTableRow != null) {
builder.append(' ');
// @since 1.0.4 Replace table char with non-breakable space
// we need this because if table is at the end of the text, then it will be
// trimmed from the final result
builder.append('\u00a0');
final TableRowSpan span = new TableRowSpan( final TableRowSpan span = new TableRowSpan(
configuration.theme(), configuration.theme(),