mirror of
https://github.com/crosspoint-reader/crosspoint-reader.git
synced 2026-04-29 10:26:52 -07:00
clang-format
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user