mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-06 23:57:39 +03:00
Only indent paragraphs for justify/left-align
This commit is contained in:
parent
52995fa722
commit
24fdbe494a
@ -43,7 +43,7 @@ std::vector<uint16_t> ParsedText::calculateWordWidths(const GfxRenderer& rendere
|
|||||||
wordWidths.reserve(totalWordCount);
|
wordWidths.reserve(totalWordCount);
|
||||||
|
|
||||||
// add em-space at the beginning of first word in paragraph to indent
|
// add em-space at the beginning of first word in paragraph to indent
|
||||||
if (!extraParagraphSpacing) {
|
if ((style == TextBlock::JUSTIFIED || style == TextBlock::LEFT_ALIGN) && !extraParagraphSpacing) {
|
||||||
std::string& first_word = words.front();
|
std::string& first_word = words.front();
|
||||||
first_word.insert(0, "\xe2\x80\x83");
|
first_word.insert(0, "\xe2\x80\x83");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user