Source code formatting

This commit is contained in:
Jonas Diemer 2025-12-16 11:12:08 +01:00
parent 7016e2b0fb
commit 96a88493cd
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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);