From f20552c81c88af542acf50168b6ad5699a2642ed Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 19 May 2010 19:24:10 +0200 Subject: Fixed Mensa module... again. --- modules/mensa.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/mensa.py b/modules/mensa.py index 5faa956..650eafa 100644 --- a/modules/mensa.py +++ b/modules/mensa.py @@ -106,11 +106,13 @@ class Module(ModuleBase): s = s.replace('<', '<') s = s.replace('>', '>') s = s.replace('"', '"') + s = s.replace('“', '“') s = s.replace('
', ' ') s = re.sub(r'-\s+', '-', s) s = re.sub(r'\s+', ' ', s) s = re.sub(r'([a-zäöüß])-([a-zäöüß])', r'\1\2', s) - s = re.sub(r']*>(.+?)', r'\1', s) + s = re.sub(r']*logo_bio[^>]*>', 'Bio', s) + s = re.sub(r'<[^>]*>', '', s) return s meals = map(unescape, meals) -- cgit v1.2.3