You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Close Telegram Desktop on all devices, open Telegram on Android.
Visit “Saved messages”.
Create the following text message: “первый второй третий четвёртый пятый шестой седьмой восьмой девятый десятый одиннадцатый двенадцатый тринадцатый четырнадцатый пятнадцатый” (without quotes).
Replace all ordinary spaces (Unicode U+0020) with non-breaking spaces (Unicode U+00A0) except the five spaces that precede the words “четвёртый”, “седьмой”, “десятый”, “двенадцатый”, “четырнадцатый”. These five must be left intact (i.e. ordinary spaces).
Save the created message in “Saved messages” and close Telegram on Android.
Open Telegram Desktop on Windows.
Ensure that “interface scale” in your Settings is “125%” (otherwise my “Actual behaviour” may slightly differ from yours).
Open the message that was saved on step 5. Alternatively, use https://t.me/ReadMithgol/32 as an example of the message containing the text proposed on step 3.
Expected behaviour
Telegram Desktop should honor the non-breaking properties of non-breaking spaces and thus wrap the lines only where the ordinary spaces are left (i.e. before the words “четвёртый”, “седьмой”, “десятый”, “двенадцатый”, “четырнадцатый”) like Telegram on Android does.
See the message https://t.me/ReadMithgol/33 containing an example screenshot of Telegram on Android. Alternatively, see this image:
Actual behaviour
Telegram Desktop displays non-breaking spaces (Unicode U+00A0) in messages as if they were ordinary spaces (Unicode U+0020). Telegram Desktop can start a new line of text where a non-breaking space has previously been.
See the message https://t.me/ReadMithgol/34 containing an example screenshot of Telegram Desktop on Windows. Alternatively, see this image:
Configuration
Operating system: Windows 7 Professional, 64 bit, with Service Pack 1.
Version of Telegram Desktop: 1.8.1, stable.
Used theme: not sure.
Additional notes
The example message has to be composed on Android because Telegram Desktop seems to replace non-breaking spaces (Unicode U+00A0) in messages by ordinary spaces (Unicode U+0020) when the messages are sent or saved.
And that includes drafts saved by other Telegram clients in groups that are open in Telegram Desktop. Hence the “close Telegram Desktop on all devices” in step 1.
A non-breaking space in the message being composed in Telegram Desktop may sometimes trigger a visual bug that looks like a negative indent of the second line of text (if the text is long enough to wrap and if the non-breaking space resides on the second line).
2️⃣ The Parser::parseCurrentChar() function is defined (in ui/text/text.cpp of desktop-app/lib_ui) to use QChar::Space (instead of the actual incoming character) wherever IsSpace returns true.
Should an additional check for U+00A0 be added to Parser::parseCurrentChar?
Should an additional check for U+00A0 be added to IsSpace?
This issue was inactive for a long time and will be automatically closed in 30 days if there isn't any further activity. We therefore assume that the user has lost interest or resolved the problem on their own.
Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue.
Steps to reproduce
Expected behaviour
Telegram Desktop should honor the non-breaking properties of non-breaking spaces and thus wrap the lines only where the ordinary spaces are left (i.e. before the words “четвёртый”, “седьмой”, “десятый”, “двенадцатый”, “четырнадцатый”) like Telegram on Android does.
See the message https://t.me/ReadMithgol/33 containing an example screenshot of Telegram on Android. Alternatively, see this image:
Actual behaviour
Telegram Desktop displays non-breaking spaces (Unicode U+00A0) in messages as if they were ordinary spaces (Unicode U+0020). Telegram Desktop can start a new line of text where a non-breaking space has previously been.
See the message https://t.me/ReadMithgol/34 containing an example screenshot of Telegram Desktop on Windows. Alternatively, see this image:
Configuration
Operating system: Windows 7 Professional, 64 bit, with Service Pack 1.
Version of Telegram Desktop: 1.8.1, stable.
Used theme: not sure.
Additional notes
The text was updated successfully, but these errors were encountered: