mirror of
https://github.com/crosspoint-reader/crosspoint-reader.git
synced 2026-04-29 10:26:52 -07:00
fix: remove empty-block restore that wiped deposited bottom margins
This commit is contained in:
@@ -1020,11 +1020,6 @@ void XMLCALL ChapterHtmlSlimParser::endElement(void* userData, const XML_Char* n
|
||||
self->currentTextBlock->getBlockStyle().addBottom(self->blockStyleStack.back()));
|
||||
}
|
||||
self->blockStyleStack.pop_back();
|
||||
// Restore parent's accumulated style on empty blocks to prevent the closed
|
||||
// element's styles from bleeding into the next sibling.
|
||||
if (self->currentTextBlock && self->currentTextBlock->isEmpty()) {
|
||||
self->currentTextBlock->setBlockStyle(self->blockStyleStack.back().withoutBottom());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user