Skip to content

Commit e0fb909

Browse files
authored
Merge pull request Sub6Resources#1031 from wangbax/master
fix: ol use default style
2 parents 132446d + 1c2412a commit e0fb909

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/custom_render.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ CustomRender listElementRender({
173173
right: (style?.direction ?? context.tree.style.direction) == TextDirection.rtl ? 10.0 : 0.0),
174174
child: style?.markerContent ?? context.style.markerContent
175175
) : Container(height: 0, width: 0),
176-
Text("\t", textAlign: TextAlign.right, style: TextStyle(fontWeight: FontWeight.w400)),
176+
Text("\u0020", textAlign: TextAlign.right, style: TextStyle(fontWeight: FontWeight.w400)),
177177
Expanded(
178178
child: Padding(
179179
padding: (style?.listStylePosition ?? context.tree.style.listStylePosition) == ListStylePosition.INSIDE ?

lib/html_parser.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,7 @@ class HtmlParser extends StatelessWidget {
606606
tree.style.markerContent = Text(
607607
marker,
608608
textAlign: TextAlign.right,
609+
style: tree.style.generateTextStyle(),
609610
);
610611
}
611612

0 commit comments

Comments
 (0)