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 {
342342 }
343343
344344 //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" )) {
346347 if (newContext.parser.selectable) {
347348 return TextSpan (
348349 style: newContext.style.generateTextStyle (),
Original file line number Diff line number Diff line change @@ -248,7 +248,8 @@ StyledElement parseStyledElement(
248248 styledElement.style = Style (
249249 margin: EdgeInsets .symmetric (vertical: 7.0 ),
250250 width: double .infinity,
251- border: Border (bottom: BorderSide (width: 1.0 )),
251+ height: 1 ,
252+ backgroundColor: Colors .black,
252253 display: Display .BLOCK ,
253254 );
254255 break ;
You can’t perform that action at this time.
0 commit comments