-
Notifications
You must be signed in to change notification settings - Fork 121
Issue/fix block styling of empty lines #450
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
Conversation
…-Android into issue/fix-block-styling-of-empty-lines
…-Android into issue/fix-block-styling-of-empty-lines # Conflicts: # CHANGELOG.md
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 was able to produce a crash:
- Start with the demo text
- Type a letter in the empty unordered list item
- Tap on the on the blockquote text
- Un-apply the quote, then reapply it
- Notice the crash
|
|
||
| ### Fixed | ||
| - Image/video loading placeholder drawable usage | ||
| - Quote styling of the paragraph ends, empty and mixed lines |
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.
🏆
|
Good catch! Fixed. |
|
Nice, it works now. Another thing I tried was apply the quote to an empty list item. Each time a new nested blockquote gets created, it's never removed. Is that expected? |
|
|
Turns out I forgot to pull the last commit. 🤦♂️ Nevermind. |
|
Good job! 🎉 |
Fixes #418 (and bunch of related functionality)
This PR fixes block styling in ambiguous situations. Apparently, people style all kind of weirdly selected text!
The original issue happened when you applied quote to the selection that included \n at the end.
This was one of the many problems that were caused by issues in detecting the quote in selection, and bounds of the paragraphs.
There are a lot of scenarios where problems were happening, and I think I recreated all of them in tests.