Skip to content

Commit

Permalink
fix: start list items on a new line (#1281)
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-famedly authored May 23, 2023
1 parent 6350f02 commit 496d1aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/builtins/styled_element_builtin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,8 @@ class StyledElementBuiltIn extends HtmlExtension {
child.value,
if (context.parser.shrinkWrap &&
i != context.styledElement!.children.length - 1 &&
child.key.style.display == Display.block &&
(child.key.style.display == Display.block ||
child.key.style.display == Display.listItem) &&
child.key.element?.localName != "html" &&
child.key.element?.localName != "body")
const TextSpan(text: "\n", style: TextStyle(fontSize: 0)),
Expand Down

0 comments on commit 496d1aa

Please sign in to comment.