From c3554124faebcdd063db942265272b05f22cff2e Mon Sep 17 00:00:00 2001 From: OMN Date: Thu, 12 Nov 2020 09:55:01 +0000 Subject: [PATCH] Tweak html header --- webapp_utils.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/webapp_utils.py b/webapp_utils.py index 02e30a78..cae8f905 100644 --- a/webapp_utils.py +++ b/webapp_utils.py @@ -515,10 +515,10 @@ def getLeftImageFile(baseDir: str, def getRightImageFile(baseDir: str, - nickname: str, domain: str, theme: str) -> (str, str): - return _getImageFile(baseDir, 'right_col_image', - baseDir + '/accounts/' + nickname + '@' + domain, - nickname, domain, theme) + nickname: str, domain: str) -> (str, str): + return getImageFile(baseDir, 'right_col_image', + baseDir + '/accounts/' + nickname + '@' + domain, + nickname, domain) def htmlHeaderWithExternalStyle(cssFilename: str, lang='en') -> str: @@ -526,6 +526,11 @@ def htmlHeaderWithExternalStyle(cssFilename: str, lang='en') -> str: htmlStr += '\n' htmlStr += ' \n' htmlStr += ' \n' + htmlStr += ' \n' + fontName, fontFormat = getFontFromCss(css) + if fontName: + htmlStr += ' \n' cssFile = '/' + cssFilename.split('/')[-1] htmlStr += ' \n' htmlStr += ' \n'