v0.5.3
- Мелкие исправления увеличивающие работу конвертера
This commit is contained in:
+7
-5
@@ -27,10 +27,6 @@ if TYPE_CHECKING:
|
||||
|
||||
BOTTOM_MARGIN = Mm(20)
|
||||
|
||||
APPENDIX_RE = re.compile(
|
||||
r"^ПРИЛОЖЕНИЕ\s+([А-ЯA-ZЁ])\b",
|
||||
re.IGNORECASE,
|
||||
)
|
||||
# Lettered appendix title: «Приложение А» or «Приложение А Название»
|
||||
APPENDIX_ITEM_RE = re.compile(
|
||||
r"^ПРИЛОЖЕНИЕ\s+([А-ЯA-ZЁ])(?:\s+(.+))?$",
|
||||
@@ -342,7 +338,13 @@ class Renderer:
|
||||
try:
|
||||
first = next(infos)
|
||||
if isinstance(first, RenderedInfo) and first.height \
|
||||
>= self._layout_tracker.current_state.remaining_page_height:
|
||||
>= self._layout_tracker.current_state.remaining_page_height \
|
||||
and self._to_new_page:
|
||||
# Deferred figures go in first and move the page boundary,
|
||||
# so this block has to be laid out again against the state
|
||||
# they leave behind. Without anything queued the flush is a
|
||||
# no-op and re-rendering would only rebuild the same
|
||||
# subtree against the same state.
|
||||
self._flush_to_new_screen()
|
||||
infos = renderable.render(self.previous_rendered, self._layout_tracker.current_state)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user