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
{{ message }}
Repository navigation
Wrong spacing for Thai words after a line break. #5543
This happens when I type in Thai characters with some space and set par(justify: true). The compiler just break the lines automatically but the space after linebreak is not eliminated like in latin characters.
This is the output:
while this all is from only one input line of code:
This seems to happen only with linebreaks set to "optimized" or auto, so a workaround is to use linebreaks: "simple" instead. Seeing that it has something to do with the "optimized" option and spaces between line breaks, it might be related to #5348, but I'm not sure.
Side note: I tried with a few other scripts and found the same behavior in Burmese, Lao, and Khmer.
Activity
pacaunt commentedon Jul 7, 2025
My current workaround:
haminic commentedon Jul 18, 2025
This seems to happen only with
linebreaksset to"optimized"orauto, so a workaround is to uselinebreaks: "simple"instead. Seeing that it has something to do with the"optimized"option and spaces between line breaks, it might be related to #5348, but I'm not sure.Side note: I tried with a few other scripts and found the same behavior in Burmese, Lao, and Khmer.
Upgrade `icu_segmenter` to 2.4.0