From c33aea37f26d9779132a4126de0b62245654cbd2 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 27 Oct 2010 11:37:31 +0200 Subject: mensa: Added é entity --- modules/mensa.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'modules') diff --git a/modules/mensa.py b/modules/mensa.py index 2e073d3..1baf60f 100644 --- a/modules/mensa.py +++ b/modules/mensa.py @@ -102,13 +102,14 @@ class Module(ModuleBase): s = s.replace('ü', 'ü') s = s.replace('Ü', 'Ü') s = s.replace('ß', 'ß') - s = s.replace('&', '&') - s = s.replace('<', '<') - s = s.replace('>', '>') - s = s.replace('"', '"') + s = s.replace('é', 'é') s = s.replace('“', '“') s = s.replace('„', '„') s = s.replace('–', '–') + 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) -- cgit v1.2.3