[mdman] Normalize newlines when rendering options

This commit is contained in:
Daniel Paoliello 2024-08-19 15:02:04 -07:00
parent a250d275ef
commit 8e2a37cc17
3 changed files with 5 additions and 2 deletions

View File

@ -139,6 +139,9 @@ impl HelperDef for OptionHelper<'_> {
// Render the block.
let block = t.renders(r, gctx, rc)?;
// Windows newlines can break some rendering, so normalize.
let block = block.replace("\r\n", "\n");
// Get the name of this page.
let man_name = gctx
.data()