Remove unecessary flush and center align

This commit is contained in:
Evan Fenner 2026-01-14 07:50:54 -07:00
parent 7d36d71efd
commit b733ae96a1

View File

@ -65,15 +65,8 @@ void XMLCALL ChapterHtmlSlimParser::startElement(void* userData, const XML_Char*
// Special handling for tables - show placeholder text instead of dropping silently
if (strcmp(name, "table") == 0) {
// Flush any partial word
if (self->partWordBufferIndex > 0 && self->currentTextBlock) {
self->partWordBuffer[self->partWordBufferIndex] = '\0';
self->currentTextBlock->addWord(self->partWordBuffer, EpdFontFamily::REGULAR);
self->partWordBufferIndex = 0;
}
// Add placeholder text
self->startNewTextBlock((TextBlock::Style)self->paragraphAlignment);
self->startNewTextBlock(TextBlock::CENTER_ALIGN);
if (self->currentTextBlock) {
self->currentTextBlock->addWord("[Table omitted]", EpdFontFamily::ITALIC);
}