diff --git a/pandora/text/views.py b/pandora/text/views.py index ce97e83e..9d96a918 100644 --- a/pandora/text/views.py +++ b/pandora/text/views.py @@ -395,6 +395,7 @@ def pdf_viewer(request, id): return render_to_json_response(response) def pdf(request, id): + id = id.replace('_', ' ').replace('\t', '_') text = get_text_or_404_json(id) if text.type == 'pdf' and text.file and not text.uploading: return HttpFileResponse(text.file.path, content_type='application/pdf')