summaryrefslogtreecommitdiff
path: root/src/xhtml.py
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2011-09-23 23:50:43 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2011-09-23 23:50:43 +0200
commit6f1481e830e76ac9bb434cca0f38343d22ebd644 (patch)
treef35ddf20bfe3c36f6e5c72390199a4340d72ada1 /src/xhtml.py
parent8f675044b1fb9d102b7a2732682faa00d812ab19 (diff)
downloadpoezio-6f1481e830e76ac9bb434cca0f38343d22ebd644.tar.gz
poezio-6f1481e830e76ac9bb434cca0f38343d22ebd644.tar.bz2
poezio-6f1481e830e76ac9bb434cca0f38343d22ebd644.tar.xz
poezio-6f1481e830e76ac9bb434cca0f38343d22ebd644.zip
Really, really fix whitespace handling.
Diffstat (limited to 'src/xhtml.py')
-rw-r--r--src/xhtml.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xhtml.py b/src/xhtml.py
index 517d9b80..01955949 100644
--- a/src/xhtml.py
+++ b/src/xhtml.py
@@ -174,7 +174,7 @@ colors = {
log = logging.getLogger(__name__)
-whitespace_re = re.compile(r'\s')
+whitespace_re = re.compile(r'\s+')
shell_colors_re = re.compile(r'(\[(?:\d+;)*(?:\d+m))')
start_indent_re = re.compile(r'\[0;30m\[0;37m ')
newline_indent_re = re.compile('\n\[0;37m ')