mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
[mdman] Normalize newlines when rendering options
This commit is contained in:
parent
a250d275ef
commit
8e2a37cc17
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user