mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-29 05:29:23 +00:00
Commit 8d354382a4 introduced a regression in RTL phrases display. When an RTL line had trailing spaces we started displaying them in front of the text still assuming counted line width value that did not include those trailing spaces. Line width is not including trailing spaces width because it is allowed to fit in the line any number of spaces. Also text block "left padding" entity was eliminated. If we have some spaces in the start of the text block (for example a text block after a link) we just add an empty word and mark those spaces as its right padding.