templates: use "word-break: keep-all" #302
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
In this PR, we address the handling of word breaking for CJK (Chinese, Japanese, Korean) languages within the project. Currently, the
word-break
property is set tonormal
, which functions adequately for English but may cause issues with CJK languages.For CJK text, where words do not have clear boundaries such as spaces, setting
word-break: keep-all
ensures that text does not break arbitrarily. This change enhances readability and the layout of CJK text by preventing unintended line breaks within words.Changes Made
word-break
property fromnormal
tokeep-all
to better support CJK languages.Reason for Change (Related to #301)
In English, the difference between
word-break: normal
andword-break: keep-all
is minimal because word boundaries are typically defined by spaces, allowing natural line breaks.However, for CJK languages, characters do not have natural word boundaries. Using
word-break: keep-all
prevents unwanted line breaks within words, ensuring proper display and readability of CJK text.This adjustment improves visual consistency and user experience for these languages.