8000 fix: start list items on a new line (#1281) · CZ-App/flutter_html_lite@496d1aa · GitHub
[go: up one dir, main page]

Skip to content 10000

Commit 496d1aa

Browse files
authored
fix: start list items on a new line (Sub6Resources#1281)
1 parent 6350f02 commit 496d1aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/src/builtins/styled_element_builtin.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,8 @@ class StyledElementBuiltIn extends HtmlExtension {
434434
child.value,
435435
if (context.parser.shrinkWrap &&
436436
i != context.styledElement!.children.length - 1 &&
437-
child.key.style.display == Display.block &&
437+
(child.key.style.display == Display.block ||
438+
child.key.style.display == Display.listItem) &&
438439
child.key.element?.localName != "html" &&
439440
child.key.element?.localName != "body")
440441
const TextSpan(text: "\n", style: TextStyle(fontSize: 0)),

0 commit comments

Comments
 (0)
0