diff --git a/library/src/main/java/ru/noties/markwon/renderer/SpannableMarkdownVisitor.java b/library/src/main/java/ru/noties/markwon/renderer/SpannableMarkdownVisitor.java index 75c70c32..8c865038 100644 --- a/library/src/main/java/ru/noties/markwon/renderer/SpannableMarkdownVisitor.java +++ b/library/src/main/java/ru/noties/markwon/renderer/SpannableMarkdownVisitor.java @@ -331,7 +331,11 @@ public class SpannableMarkdownVisitor extends AbstractVisitor { visitChildren(node); 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( configuration.theme(),