From 7375adce335bdb8ccb6e47a1d19748e5f29ce0e1 Mon Sep 17 00:00:00 2001 From: pictuga Date: Wed, 15 Apr 2020 23:34:28 +0200 Subject: [PATCH] sheet.xsl: fix & improve --- morss/feeds.py | 5 +++-- www/sheet.xsl | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/morss/feeds.py b/morss/feeds.py index 019f877..3801b28 100644 --- a/morss/feeds.py +++ b/morss/feeds.py @@ -52,8 +52,9 @@ def parse_rules(filename=None): # for each rule if rules[section][arg].startswith('file:'): - paths = [os.path.join(sys.prefix, 'share/morss', rules[section][arg][5:]), - os.path.join(os.path.dirname(__file__), '..', rules[section][arg][5:])] + paths = [os.path.join(sys.prefix, 'share/morss/www', rules[section][arg][5:]), + os.path.join(os.path.dirname(__file__), '../www', rules[section][arg][5:]), + os.path.join(os.path.dirname(__file__), '../..', rules[section][arg][5:])] for path in paths: try: diff --git a/www/sheet.xsl b/www/sheet.xsl index f3baf14..a0e0a17 100644 --- a/www/sheet.xsl +++ b/www/sheet.xsl @@ -52,6 +52,10 @@ font-weight: bold; font-size: 1.5em; } + + .content * { + max-width: 100%; + }