From 520332e151fa25c50c192b752efa95fb2946e785 Mon Sep 17 00:00:00 2001 From: Marius Gedminas Date: Tue, 22 Oct 2013 10:52:43 +0300 Subject: [PATCH] Trailing newline on raw responses Without this you cannot easily share patches: user@machine1 $ git diff | curl -F 'content=<-' https://dpaste.de/api/ user@machine2 $ curl https://dpaste.de/xxxx/raw/ | git apply fatal: corrupt patch at line 67 --- dpaste/templates/dpaste/snippet_details_raw.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dpaste/templates/dpaste/snippet_details_raw.html b/dpaste/templates/dpaste/snippet_details_raw.html index 47e704a..64e47b6 100644 --- a/dpaste/templates/dpaste/snippet_details_raw.html +++ b/dpaste/templates/dpaste/snippet_details_raw.html @@ -1 +1 @@ -{{ snippet.content|safe }} \ No newline at end of file +{{ snippet.content|safe }}