-
Notifications
You must be signed in to change notification settings - Fork 19
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
fix: line break unhandled event (WPB-3320) #2043
fix: line break unhandled event (WPB-3320) #2043
Conversation
APKs built during tests are available here. Scroll down to Artifacts! |
app/src/main/kotlin/com/wire/android/ui/markdown/MarkdownComposer.kt
Outdated
Show resolved
Hide resolved
APKs built during tests are available here. Scroll down to Artifacts! |
@@ -158,9 +159,8 @@ fun inlineChildren( | |||
annotatedString.pop() | |||
} | |||
|
|||
is HardLineBreak -> { | |||
is HardLineBreak, is SoftLineBreak -> { |
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.
That is a blessing from commonmark. I wasn't expecting it to be so simple!
Nice find.
Build 838 succeeded. The build produced the following APK's: |
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
Issues
When sending a message with 2 lines, the soft line break was not being handled and rendering first and second line together. example:
Causes (Optional)
SoftLineBreak
was not being handled.Solutions
Add handling of
SoftLineBreak
so it renders correctly (as in the image below)Testing
How to Test
Attachments (Optional)