From 10de3409d1d39ebcfa49299537e28d82996ad56b Mon Sep 17 00:00:00 2001 From: Zach Nelson Date: Thu, 16 Apr 2026 00:50:36 -0500 Subject: [PATCH] clang-format --- lib/Epub/Epub/parsers/ChapterHtmlSlimParser.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/Epub/Epub/parsers/ChapterHtmlSlimParser.cpp b/lib/Epub/Epub/parsers/ChapterHtmlSlimParser.cpp index 1fe7e26bc..7d63f1654 100644 --- a/lib/Epub/Epub/parsers/ChapterHtmlSlimParser.cpp +++ b/lib/Epub/Epub/parsers/ChapterHtmlSlimParser.cpp @@ -506,10 +506,9 @@ void XMLCALL ChapterHtmlSlimParser::startElement(void* userData, const XML_Char* // Fallback to alt text if image processing fails if (!alt.empty()) { alt = "[Image: " + alt + "]"; - self->startNewTextBlock( - self->blockStyleStack.back() - .getCombinedBlockStyle(centeredBlockStyle, BlockStyle::CombineAxis::Horizontal) - .withoutBottom()); + self->startNewTextBlock(self->blockStyleStack.back() + .getCombinedBlockStyle(centeredBlockStyle, BlockStyle::CombineAxis::Horizontal) + .withoutBottom()); self->italicUntilDepth = std::min(self->italicUntilDepth, self->depth); self->depth += 1; self->characterData(userData, alt.c_str(), alt.length()); @@ -614,8 +613,8 @@ void XMLCALL ChapterHtmlSlimParser::startElement(void* userData, const XML_Char* self->startNewTextBlock(self->blockStyleStack.back().withoutBottom()); } else { self->currentCssStyle = cssStyle; - const auto accumulated = - self->blockStyleStack.back().getCombinedBlockStyle(userAlignmentBlockStyle, BlockStyle::CombineAxis::Horizontal); + const auto accumulated = self->blockStyleStack.back().getCombinedBlockStyle(userAlignmentBlockStyle, + BlockStyle::CombineAxis::Horizontal); self->blockStyleStack.push_back(accumulated); self->startNewTextBlock(accumulated.withoutBottom()); self->updateEffectiveInlineStyle();