about summary refs log tree commit diff
path: root/src/librustdoc/html/highlight/fixtures
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2020-11-15 20:51:25 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2020-11-15 20:57:20 +0100
commit0c52044528580fb5b02eb0dca7bbbe3e584d6b13 (patch)
tree9e5745c1cc04aa78981ce299bd8102cf877f2b34 /src/librustdoc/html/highlight/fixtures
parent1861a38ca9040c36741fb51f9b22f65228722b13 (diff)
Add test to ensure that no DOS backline (\r\n) doesn't create extra backline in source rendering
Diffstat (limited to 'src/librustdoc/html/highlight/fixtures')
-rw-r--r--src/librustdoc/html/highlight/fixtures/dos_line.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/librustdoc/html/highlight/fixtures/dos_line.html b/src/librustdoc/html/highlight/fixtures/dos_line.html
new file mode 100644
index 00000000000..4400f85681d
--- /dev/null
+++ b/src/librustdoc/html/highlight/fixtures/dos_line.html
@@ -0,0 +1,3 @@
+<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">foo</span>() {
+<span class="macro">println</span><span class="macro">!</span>(<span class="string">&quot;foo&quot;</span>);
+}