We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12f0dba commit 1861a38Copy full SHA for 1861a38
src/librustdoc/html/highlight.rs
@@ -21,6 +21,8 @@ pub fn render_with_highlighting(
21
playground_button: Option<&str>,
22
tooltip: Option<(&str, &str)>,
23
) -> String {
24
+ // This replace allows to fix how the code source with DOS backline characters is displayed.
25
+ let src = src.replace("\r\n", "\n");
26
debug!("highlighting: ================\n{}\n==============", src);
27
let mut out = String::with_capacity(src.len());
28
if let Some((tooltip, class)) = tooltip {
0 commit comments