Permalink
Browse files

Include re.UNICODE flag in STRIP_WHITESPACE regular expression

  • Loading branch information...
1 parent 83f4b6e commit 5ef052fe2f9a311d52a7707b00afccef51814fd1 @V-Alexeev V-Alexeev committed May 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 softhyphen/html.py
View
@@ -48,7 +48,7 @@ def hyphenate(html, language='en-us', hyphenator=None, blacklist_tags=(
# Constants
SOFT_HYPHEN = r'­'
SPACE = r' '
-STRIP_WHITESPACE = re.compile('\w+', re.MULTILINE)
+STRIP_WHITESPACE = re.compile('\w+', re.MULTILINE|re.UNICODE)
def hyphenate_element(soup, hyphenator, blacklist_tags):
"""

0 comments on commit 5ef052f

Please sign in to comment.