spaced text when multiple rows
Steps to reproduce
Same issue as on android https://github.com/element-hq/element-x-android/issues/4695
Render is off, its spaced and its annoying. Rendering works normally on EW
Outcome
What did you expect?
Render to work properly, not to have extra spaces inbetween
What happened instead?
Space, rendering not working...
Your phone model
No response
Operating system version
No response
Application version
28.08.03
Homeserver
No response
Will you send logs?
No
25.03.0 was still working fine
But in newest version its like this:
Seems to be an issue of the markdown parser the SDK uses.
Seems to be an issue of the markdown parser the SDK uses.
Is the issue already raised for sdk? Is it maybe tracked somewhere? Thank you
@Destinyg133 hey, I have 2 requests.
-
Can you test out version 25.09.12?
-
Could you provide text that you used in messages? Format them like you will in Element X:
Wordle 1,532 2/6
š©ā¬šØā¬š©
š©š©š©š©š©
In Ruma tests, it will look like this:
Wordle 1,532 2/6\n\nš©ā¬šØā¬š©\nš©š©š©š©š©
And Ruma produces the following output:
<p>Wordle 1,532 2/6</p>\n<p>š©ā¬šØā¬š©<br />\nš©š©š©š©š©</p>\n
After some quick testing with Ruma ā SDK that is being used in this Matrix client ā it seems to handle multi-line messages with emojis just fine.
However, there are some hacks around Ruma's behavior that might produce different result:
https://github.com/element-hq/element-x-ios/blob/efa06b31d8cbd248577cf942f958dbbd0526cb2c/ElementX/Sources/Other/HTMLParsing/AttributedStringBuilderV2.swift#L421C1-L432C2
Which were added in the following PR (already present in version 25.09.12): https://github.com/element-hq/element-x-ios/pull/4506
Mentioning issue https://github.com/element-hq/element-x-android/issues/4695 as related one.
@Destinyg133 hey, I have 2 requests.
1. Can you test out version 25.09.12? 2. Could you provide text that you used in messages? Format them like you will in Element X:Wordle 1,532 2/6 š©ā¬šØā¬š© š©š©š©š©š©In Ruma tests, it will look like this:
Wordle 1,532 2/6\n\nš©ā¬šØā¬š©\nš©š©š©š©š©And Ruma produces the following output:
<p>Wordle 1,532 2/6</p>\n<p>š©ā¬šØā¬š©<br />\nš©š©š©š©š©</p>\nAfter some quick testing with Ruma ā SDK that is being used in this Matrix client ā it seems to handle multi-line messages with emojis just fine.
However, there are some hacks around Ruma's behavior that might produce different result:
https://github.com/element-hq/element-x-ios/blob/efa06b31d8cbd248577cf942f958dbbd0526cb2c/ElementX/Sources/Other/HTMLParsing/AttributedStringBuilderV2.swift#L421C1-L432C2
Which were added in the following PR (already present in version 25.09.12): #4506
Mentioning issue element-hq/element-x-android#4695 as related one.
Still not working correctly
` Wordle 1,572 3/6
ā¬šØā¬ā¬š© ā¬šØā¬šØā¬ š©š©š©š©š© `