File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -342,7 +342,8 @@ class HtmlParser extends StatelessWidget {
342
342
}
343
343
344
344
//Return the correct InlineSpan based on the element type.
345
- if (tree.style.display == Display .BLOCK && tree.children.isNotEmpty) {
345
+ if (tree.style.display == Display .BLOCK &&
346
+ (tree.children.isNotEmpty || tree.element? .localName == "hr" )) {
346
347
if (newContext.parser.selectable) {
347
348
return TextSpan (
348
349
style: newContext.style.generateTextStyle (),
Original file line number Diff line number Diff line change @@ -248,7 +248,8 @@ StyledElement parseStyledElement(
248
248
styledElement.style = Style (
249
249
margin: EdgeInsets .symmetric (vertical: 7.0 ),
250
250
width: double .infinity,
251
- border: Border (bottom: BorderSide (width: 1.0 )),
251
+ height: 1 ,
252
+ backgroundColor: Colors .black,
252
253
display: Display .BLOCK ,
253
254
);
254
255
break ;
You can’t perform that action at this time.
0 commit comments