diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2010-05-19 19:24:10 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2010-05-19 19:24:10 +0200 |
commit | f20552c81c88af542acf50168b6ad5699a2642ed (patch) | |
tree | 25caf40270e63ae98e5375b2cf424c4f659c2371 | |
parent | 99298d39815946c5209b401191af779c7ada0f6e (diff) | |
download | curunir-f20552c81c88af542acf50168b6ad5699a2642ed.tar curunir-f20552c81c88af542acf50168b6ad5699a2642ed.zip |
Fixed Mensa module... again.
-rw-r--r-- | modules/mensa.py | 4 |
1 files changed, 3 insertions, 1 deletions
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('<br />', ' ') 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'<span[^>]*>(.+?)</span>', r'\1', s) + s = re.sub(r'<img[^>]*logo_bio[^>]*>', 'Bio', s) + s = re.sub(r'<[^>]*>', '', s) return s meals = map(unescape, meals) |