Fix {sentence-furigana-plain} sometimes cutting off the first character #1878
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.
Fixes #1877
If the start of a sentence has a word that contains a reading, there will be an added space at the start that should be trimmed off. But if there is no reading, there is no leading space since spaces can only be put between the starts of words that require furigana when using the
furigana-plain
format. Otherwise the spaces will render as real spaces instead of separators between words when rendering furigana.The first character was being trimmed off always and this removed the first character if there wasnt an added space (the first word didnt have a reading).