Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<strong> tag creates break, when useRichText equals true #82

Closed
AndreyMolochko opened this issue May 1, 2019 · 10 comments
Closed

<strong> tag creates break, when useRichText equals true #82

AndreyMolochko opened this issue May 1, 2019 · 10 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@AndreyMolochko
Copy link

AndreyMolochko commented May 1, 2019

I saw previous issues about incorrect work tag "strong". I write useRichText:true and everything works well, but there is an exception when tag is at the beginning.

@AndreyMolochko AndreyMolochko changed the title <strong> tag create break, when we useRichText equals true <strong> tag create break, when useRichText equals true May 1, 2019
@Sub6Resources
Copy link
Owner

Can you post your HTML code and a screenshot of what you're seeing?

@AndreyMolochko
Copy link
Author

image
image

@Sub6Resources
Copy link
Owner

Hmm, that's odd. What attributes do you have set on your Html widget?

@Sub6Resources Sub6Resources added the bug Something isn't working label May 8, 2019
@valerybodak
Copy link

valerybodak commented May 11, 2019

@Sub6Resources I have the same issue if string starts with <strong> tag:

<strong>15<\/strong>% of the text are stop words.

The result is:

15
% of the text are stop words.

My attributes:

Html(
    data: htmlString,
    useRichText: true,
    defaultTextStyle: new TextStyle(fontSize: 14.0, color: const Color(0xff4c4c4c)),
 )

Could you please help me.

@AndreyMolochko AndreyMolochko changed the title <strong> tag create break, when useRichText equals true <strong> tag creates break, when useRichText equals true May 13, 2019
@Sub6Resources Sub6Resources self-assigned this May 13, 2019
@Sub6Resources Sub6Resources added this to the Next Version milestone May 13, 2019
@egorges
Copy link

egorges commented May 13, 2019

The workaround is enclose it in a paragraph, prefixing with <p>

@Sub6Resources
Copy link
Owner

This has been fixed in version 0.9.7. Thank you!

@AndreyMolochko
Copy link
Author

Thank you!

@AndreyMolochko
Copy link
Author

AndreyMolochko commented May 15, 2019

@Sub6Resources I got unexpected top and bottom padding in version 0.9.7. (left screen - we used lib with version 0.9.6, right screen - we used lib with version 0.9.7)

|

--- | ---

@AndreyMolochko
Copy link
Author

AndreyMolochko commented May 15, 2019

@Sub6Resources I found that these lines produce issue with padding.
image

@Sub6Resources
Copy link
Owner

Yup, that does appear to be the issue. I'll work on fixing this in the next version, which should hopefully be out later this week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants