summaryrefslogtreecommitdiff
path: root/pygments/lexer.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2013-01-09 10:25:07 +0100
committerGeorg Brandl <georg@python.org>2013-01-09 10:25:07 +0100
commit317a3c772b237d98b409a35628e2c4cf5ea0a738 (patch)
tree0cba4a9474be3eb6a2aeb66e5f2174f093929062 /pygments/lexer.py
parentca69c4d881c5238055ffbbbcc851ce9083692935 (diff)
downloadpygments-317a3c772b237d98b409a35628e2c4cf5ea0a738.tar.gz
Whitespace cleanup.
Diffstat (limited to 'pygments/lexer.py')
-rw-r--r--pygments/lexer.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pygments/lexer.py b/pygments/lexer.py
index 2280a250..7cb212d5 100644
--- a/pygments/lexer.py
+++ b/pygments/lexer.py
@@ -164,9 +164,9 @@ class Lexer(object):
else:
text = text.decode(self.encoding)
else:
- if text.startswith(u'\ufeff'):
+ if text.startswith(u'\ufeff'):
text = text[len(u'\ufeff'):]
-
+
# text now *is* a unicode string
text = text.replace('\r\n', '\n')
text = text.replace('\r', '\n')
@@ -698,4 +698,3 @@ def do_insertions(insertions, tokens):
except StopIteration:
insleft = False
break # not strictly necessary
-