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) {