mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-08 00:27:39 +03:00
clang format fix
This commit is contained in:
parent
e46a271c12
commit
54669a8fd4
@ -1,7 +1,6 @@
|
||||
#include "ParsedText.h"
|
||||
|
||||
#include <GfxRenderer.h>
|
||||
#include "hyphenation/Hyphenator.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
@ -10,6 +9,8 @@
|
||||
#include <limits>
|
||||
#include <vector>
|
||||
|
||||
#include "hyphenation/Hyphenator.h"
|
||||
|
||||
constexpr int MAX_COST = std::numeric_limits<int>::max();
|
||||
|
||||
void ParsedText::addWord(std::string word, const EpdFontFamily::Style fontStyle) {
|
||||
@ -154,8 +155,7 @@ void ParsedText::applyParagraphIndent() {
|
||||
words.front().insert(0, "\xe2\x80\x83");
|
||||
}
|
||||
|
||||
void ParsedText::ensureHyphenationFitsViewport(const GfxRenderer& renderer, const int fontId,
|
||||
const int viewportWidth) {
|
||||
void ParsedText::ensureHyphenationFitsViewport(const GfxRenderer& renderer, const int fontId, const int viewportWidth) {
|
||||
if (!hyphenationEnabled || viewportWidth <= 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user