Move all text functionality toplevel

This commit is contained in:
Armin Ronacher 2021-02-03 00:56:17 +01:00
parent de8d82ab63
commit 844769ae19
10 changed files with 96 additions and 118 deletions

View file

@ -0,0 +1,25 @@
---
source: src/udiff.rs
expression: "&diff.unified_diff().header(\"a.txt\", \"b.txt\").to_string()"
---
--- a.txt
+++ b.txt
@@ -15,3 +19,3 @@
p
q
r
-s
+S
t
u
v
@@ -37,3 +41,3 @@
L
M
N
-O
+o
P
Q
R

View file

@ -0,0 +1,10 @@
---
source: src/udiff.rs
expression: "&diff.unified_diff().missing_newline_hint(false).header(\"a.txt\",\n \"b.txt\").to_string()"
---
--- a.txt
+++ b.txt
@@ -0 +0 @@
-a
+b

View file

@ -0,0 +1,11 @@
---
source: src/udiff.rs
expression: "&diff.unified_diff().header(\"a.txt\", \"b.txt\").to_string()"
---
--- a.txt
+++ b.txt
@@ -0 +0 @@
-a
+b
\ No newline at end of file