mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-04 18:29:23 +02:00
style entry writing to the model cache
This commit is contained in:
parent
2422f080a8
commit
74cb4cf7be
11 changed files with 234 additions and 180 deletions
|
@ -585,7 +585,7 @@ void XHTMLReader::beginParagraph() {
|
|||
myModelReader.addControl(**it);
|
||||
doBlockSpaceBefore =
|
||||
doBlockSpaceBefore ||
|
||||
(*it)->isLengthSupported(ZLTextStyleEntry::LENGTH_SPACE_BEFORE);
|
||||
(*it)->isFeatureSupported(ZLTextStyleEntry::LENGTH_SPACE_BEFORE);
|
||||
}
|
||||
|
||||
if (doBlockSpaceBefore) {
|
||||
|
@ -604,7 +604,7 @@ void XHTMLReader::endParagraph() {
|
|||
for (std::vector<shared_ptr<ZLTextStyleEntry> >::const_iterator it = myStyleEntryStack.begin(); it != myStyleEntryStack.end() - myStylesToRemove; ++it) {
|
||||
doBlockSpaceAfter =
|
||||
doBlockSpaceAfter ||
|
||||
(*it)->isLengthSupported(ZLTextStyleEntry::LENGTH_SPACE_AFTER);
|
||||
(*it)->isFeatureSupported(ZLTextStyleEntry::LENGTH_SPACE_AFTER);
|
||||
}
|
||||
if (doBlockSpaceAfter) {
|
||||
ZLTextStyleEntry blockingEntry;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue