The abstract was wrapped in a Div with `custom-style` set to
`Abstract`, but then handed to `metaToContext`, which renders metadata
fields with the inline writer. That dropped the Div, and with it the
style, and also the `text:p` wrapper, leaving bare character data as a
direct child of `office:text`, where it is not valid. A
multi-paragraph abstract was collapsed into one paragraph with a
`text:line-break`.
Render the abstract separately with the block writer and remove it
from the metadata that goes through the inline writer.
This fixes the regression from 013351f602, which assumed the abstract
was filtered out of `meta'`; it was in fact set there.
Co-Authored-By: Claude <noreply@anthropic.com>
2 lines
11 B
Plaintext
2 lines
11 B
Plaintext
$abstract$
|