Skip to content

Commit 0829368

Browse files
committed
Apply block element padding fix in tables to customRender rewrite
1 parent d933faa commit 0829368

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/custom_render.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ CustomRender fallbackRender({Style? style, List<InlineSpan>? children}) =>
214214
.expand((tree) => [
215215
context.parser.parseTree(context, tree),
216216
if (tree.style.display == Display.BLOCK &&
217+
tree.element?.parent?.localName != "th" &&
218+
tree.element?.parent?.localName != "td" &&
217219
tree.element?.localName != "html" &&
218220
tree.element?.localName != "body")
219221
TextSpan(text: "\n"),

0 commit comments

Comments
 (0)