Fix the ranges in unified diff output

This commit is contained in:
Armin Ronacher 2021-02-25 23:20:56 +01:00
parent 094ba84680
commit 3cb7d5ab76
6 changed files with 15 additions and 13 deletions

View file

@ -4,7 +4,7 @@ expression: "&diff.unified_diff().header(\"a.txt\", \"b.txt\").to_string()"
---
--- a.txt
+++ b.txt
@@ -15,3 +19,3 @@
@@ -16,7 +16,7 @@
p
q
r
@ -13,7 +13,7 @@ expression: "&diff.unified_diff().header(\"a.txt\", \"b.txt\").to_string()"
t
u
v
@@ -37,3 +41,3 @@
@@ -38,7 +38,7 @@
L
M
N

View file

@ -4,7 +4,7 @@ expression: "&diff.unified_diff().missing_newline_hint(false).header(\"a.txt\",\
---
--- a.txt
+++ b.txt
@@ -0 +0 @@
@@ -1 +1 @@
-a
+b

View file

@ -4,7 +4,7 @@ expression: "&diff.unified_diff().header(\"a.txt\", \"b.txt\").to_string()"
---
--- a.txt
+++ b.txt
@@ -0 +0 @@
@@ -1 +1 @@
-a
+b
\ No newline at end of file