Closed OlgaRedozubova closed 11 months ago
@dlrac are these changes consistent with what's being emitted right now?
@OlgaRedozubova Behavior looks good to me - it gives us control over how paragraphs are formed/broken. I did not audit the code itself.
@iammosespaulr For footnotes text there is an issue which I need to attend to. So we'll change new line behavior around footnotetext
to be better. Current code does not handle it correctly.
branch: dev/olga/Fix-spacing-before-footnotetext
Why:
Fixes [mmd] The \footnotetext{} command in the middle of the text should not cause a line break #5794 For the issue [ocr-api] PDF OCR issues: quotes and footnotes #5782
What's being changed:
footnotetext
andfoornone
from breaking paragraphs. If there is no empty line before\footnotetext
.1.1. There are no empty line before and after
\footnotetext
. Content should not be divided into paragraphs.mmd:
Before :
After:
1.2. Content should be broken into paragraphs if there is a blank line before or after
\footnotetext
. In this case, the rule of breaking into paragraphs is fulfilled.Empty line before
\footnotetext
. mmd:Empty line after
\footnotetext
. mmd: