diff --git a/dpaste/views.py b/dpaste/views.py index 2b96cd3..d07e76d 100644 --- a/dpaste/views.py +++ b/dpaste/views.py @@ -256,8 +256,8 @@ def snippet_api(request, enclose_quotes=True): response = 'https://dpaste.de%s' % s.get_absolute_url() if enclose_quotes: - return HttpResponse('"%s"' % response) - return HttpResponse(response) + return HttpResponse('"%s"\n' % response) + return HttpResponse(response + '\n') # -----------------------------------------------------------------------------