From 768fb6f2dfe40203f4307709e04d53e365945629 Mon Sep 17 00:00:00 2001 From: Mokaddem Date: Thu, 10 Nov 2016 16:41:07 +0100 Subject: [PATCH] removed server overhead for paste preview data --- var/www/Flask_server.py | 2 +- var/www/templates/important_paste_by_module.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/var/www/Flask_server.py b/var/www/Flask_server.py index e45bc407..0fe86941 100755 --- a/var/www/Flask_server.py +++ b/var/www/Flask_server.py @@ -92,7 +92,7 @@ def event_stream_getImportantPasteByModule(module_name): data["module"] = module_name data["index"] = index data["path"] = path - data["content"] = content[0:content_range].replace("\"", "\'").replace("\r", " ").replace("\n", " ") + data["content"] = content[0:content_range] data["linenum"] = paste.get_lines_info()[0] data["date"] = curr_date data["char_to_display"] = max_preview_modal diff --git a/var/www/templates/important_paste_by_module.html b/var/www/templates/important_paste_by_module.html index 5b4bd8c1..61e840d9 100644 --- a/var/www/templates/important_paste_by_module.html +++ b/var/www/templates/important_paste_by_module.html @@ -41,7 +41,7 @@ function deploy_source() { " "+ feed.path +"", feed.date, feed.linenum, - "

" + "

" ] ).draw( false ); $("#myTable_"+moduleName).attr('data-numElem', curr_numElem+1); if(feed.finished) {