From fe8129b37d8b6787920a21f9961316747b62fb30 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sat, 18 Jul 2020 09:28:03 +0100 Subject: Updating stylesheets and about page after receiving feedback. --- bh20simplewebuploader/main.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'bh20simplewebuploader/main.py') diff --git a/bh20simplewebuploader/main.py b/bh20simplewebuploader/main.py index 206f884..2c360e1 100644 --- a/bh20simplewebuploader/main.py +++ b/bh20simplewebuploader/main.py @@ -459,7 +459,11 @@ def edit_button(url,text="Edit text!"): return '

'+text+'

' def get_html_body(fn,source="https://github.com/arvados/bh20-seq-resource/tree/master/doc"): - buf = edit_button(source) + """ + This function gets the HTML generated from org-mode exports, strips + headers and footers and surrounds it with a blog section. + """ + buf = '
'+edit_button(source) in_body = False begin_body = re.compile(r"",re.IGNORECASE) end_body = re.compile(r"(|.*=\"postamble\")",re.IGNORECASE) @@ -471,7 +475,7 @@ def get_html_body(fn,source="https://github.com/arvados/bh20-seq-resource/tree/m buf += line elif begin_body.match(line): in_body = True - buf += edit_button(source) + buf += edit_button(source)+'
' return buf @app.route('/download') -- cgit v1.2.3