[rhythmbox] lyrics: make TerraParser HTML regex match numeric entities (bug #619247)
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] lyrics: make TerraParser HTML regex match numeric entities (bug #619247)
- Date: Sat, 29 May 2010 05:39:14 +0000 (UTC)
commit a1795c3dd1f00e351800d904970e018a8dedf7df
Author: David Bate <davebate gmail com>
Date: Sat May 29 15:37:16 2010 +1000
lyrics: make TerraParser HTML regex match numeric entities (bug #619247)
plugins/lyrics/lyrics/TerraParser.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/lyrics/lyrics/TerraParser.py b/plugins/lyrics/lyrics/TerraParser.py
index 6b200aa..ccbee92 100644
--- a/plugins/lyrics/lyrics/TerraParser.py
+++ b/plugins/lyrics/lyrics/TerraParser.py
@@ -36,7 +36,7 @@ import sys
from htmlentitydefs import name2codepoint
-pattern = re.compile("&(\w+?);")
+pattern = re.compile("&(#?\w+?);")
def _replace_entity(match):
text = match.group(1)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]