Closed TijnvandenEijnde closed 5 months ago
The latest version flutter_widget_from_html_core@0.14.12
has a fix for this, please try upgrading and let me know whether it works for you.
@daohoangson Just tested it and it is working as intended! Thank you so much for picking it up so quickly!
First of all, thank you for creating this package, it does almost everything I need!
I have a question about the pre tag, because it seems for now that it is swallowing the whitespace. I have been looking through the documentation and I cannot find a way to disable it without changing the package's code.
Steps to Reproduce
See the HTML down below:
With the following code, you should be able to get the same results as shown in the screenshot in the "Actual results" section.
Expected results
I expected to see the following:
And I can achieve this by disabling the following inside the
_loop
function of the package'sflattener
class:Actual results
This is what I am actually getting
I think this is happening because of the spans inside the pre tag. However, I am working with dynamic RSS feeds so there is not much I can do about that. So it would be very nice if there was a way to set
_shallowWhiteSpace
tofalse
.I have already tried to override the
BuildOp
for the pre tag, but I could not find a way to set the_swallowWhitespace
tofalse
.