-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Make sure to normalize subtags when parsing BBCode #75622
Make sure to normalize subtags when parsing BBCode #75622
Conversation
A nice followup would be adding some tests for the parser. |
6435b86
to
fadde9f
Compare
Sorry it took me so long to address your points @KoBeWi, Github decided to just not notify me of them 🤡 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think color
and outline_color
also need unquote, because they don't work quoted.
Other than that seems fine (I don't know if it covers all cases though).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think color and outline_color also need unquote, because they don't work quoted.
Indeed, it should be unquoted as well (both main tags and drop cap subtags). Quoted colors won't work, at least in case of HTML color codes.
Otherwise, seems OK.
Weird... I would guess they would work, I'll have a look |
This PR makes it so that all subtags are normalized before usage. Normalization means removing any leading and/or trailing quotation marks from any given subtag. Fixes: godotengine#75501
fadde9f
to
8b6e572
Compare
Thanks! |
This PR makes it so that all subtags are normalized before usage. Normalization means removing any leading and/or trailing quotation marks from any given subtag.
Fixes: #75501