mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-06 23:57:39 +03:00
clang format fix
This commit is contained in:
parent
f589c60690
commit
8cbf24d12f
@ -179,7 +179,8 @@ std::vector<size_t> ParsedText::computeHyphenatedLineBreaks(const GfxRenderer& r
|
|||||||
|
|
||||||
// Word would overflow — try to split based on hyphenation points
|
// Word would overflow — try to split based on hyphenation points
|
||||||
const int availableWidth = pageWidth - lineWidth - spacing;
|
const int availableWidth = pageWidth - lineWidth - spacing;
|
||||||
const bool allowFallbackBreaks = isFirstWord; // Permit fallback breaks only when first word one the line still overflows
|
const bool allowFallbackBreaks =
|
||||||
|
isFirstWord; // Permit fallback breaks only when first word one the line still overflows
|
||||||
if (availableWidth > 0 &&
|
if (availableWidth > 0 &&
|
||||||
hyphenateWordAtIndex(currentIndex, availableWidth, renderer, fontId, wordWidths, allowFallbackBreaks)) {
|
hyphenateWordAtIndex(currentIndex, availableWidth, renderer, fontId, wordWidths, allowFallbackBreaks)) {
|
||||||
// Prefix now fits; append it to this line and immediately move to the next line
|
// Prefix now fits; append it to this line and immediately move to the next line
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user