diff options
author | 2012-11-16 17:16:55 +0000 | |
---|---|---|
committer | 2012-11-16 17:16:55 +0000 | |
commit | ccb2b6c5e221f64660f6481251aaaf2dbd12679a (patch) | |
tree | cc6a0d77c99954bf2a563f9d3a06945037359ce9 /regress | |
parent | ed556a16a0d0d619b59f20de7ff6e61eb00b0fde (diff) | |
download | mandoc-ccb2b6c5e221f64660f6481251aaaf2dbd12679a.tar.gz mandoc-ccb2b6c5e221f64660f6481251aaaf2dbd12679a.tar.zst mandoc-ccb2b6c5e221f64660f6481251aaaf2dbd12679a.zip |
Improve formatting of badly nested font blocks.
The basic idea is to already pop the font at the end marker
instead of allowing it to linger until the final end of the block.
This requires a few preliminaries:
* For each block, save a pointer to the previous font
to be used in case the block breaks another and gets extended.
* That requires making node information writable during rendering.
* Now fonts may get popped in the wrong order; hence, after the stack
has already been rewound further by some block that began earlier,
ignore popping a font that was put on the stack later.
* To be able to exploit all this for font blocks, tie processing
to their body, not their block, which is more logical anyway.
Triggered by florian@ reporting vaguely similar issues with list blocks.
Diffstat (limited to 'regress')
0 files changed, 0 insertions, 0 deletions