Merge branch 'fix-text-align' of https://github.com/jpirnay/crosspoint-reader into mybuild
This commit is contained in:
@@ -629,7 +629,12 @@ void XMLCALL ChapterHtmlSlimParser::startElement(void* userData, const XML_Char*
|
|||||||
self->startNewTextBlock(brStyle);
|
self->startNewTextBlock(brStyle);
|
||||||
} else {
|
} else {
|
||||||
self->currentCssStyle = cssStyle;
|
self->currentCssStyle = cssStyle;
|
||||||
self->startNewTextBlock(userAlignmentBlockStyle);
|
auto blockStyle = userAlignmentBlockStyle;
|
||||||
|
if (self->embeddedStyle && cssStyle.hasTextAlign()) {
|
||||||
|
blockStyle.alignment = cssStyle.textAlign;
|
||||||
|
blockStyle.textAlignDefined = true;
|
||||||
|
}
|
||||||
|
self->startNewTextBlock(blockStyle);
|
||||||
self->updateEffectiveInlineStyle();
|
self->updateEffectiveInlineStyle();
|
||||||
|
|
||||||
if (strcmp(name, "li") == 0) {
|
if (strcmp(name, "li") == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user