mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2025-12-18 07:07:41 +03:00
Source code formatting
This commit is contained in:
parent
7016e2b0fb
commit
96a88493cd
@ -126,7 +126,7 @@ void ParsedText::layoutAndExtractLines(const GfxRenderer& renderer, const int fo
|
|||||||
// Calculate spacing
|
// Calculate spacing
|
||||||
int spareSpace = pageWidth - lineWordWidthSum;
|
int spareSpace = pageWidth - lineWordWidthSum;
|
||||||
if (wordWidthIndex == 0) {
|
if (wordWidthIndex == 0) {
|
||||||
spareSpace -= indentWidth;
|
spareSpace -= indentWidth;
|
||||||
}
|
}
|
||||||
|
|
||||||
int spacing = spaceWidth;
|
int spacing = spaceWidth;
|
||||||
|
|||||||
@ -20,7 +20,7 @@ class ParsedText {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
explicit ParsedText(const TextBlock::BLOCK_STYLE style, const bool extraParagraphSpacing)
|
explicit ParsedText(const TextBlock::BLOCK_STYLE style, const bool extraParagraphSpacing)
|
||||||
: style(style), extraParagraphSpacing(extraParagraphSpacing) {}
|
: style(style), extraParagraphSpacing(extraParagraphSpacing) {}
|
||||||
~ParsedText() = default;
|
~ParsedText() = default;
|
||||||
|
|
||||||
void addWord(std::string word, EpdFontStyle fontStyle);
|
void addWord(std::string word, EpdFontStyle fontStyle);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user