Commits

Anonymous committed 4ba74e4

Robot Framework lexer: Fixed handlign trailing spaces.

Fixes Pygments bug #855:
https://bitbucket.org/birkenfeld/pygments-main/issue/855/robot-framework-lexer-returns-wrong

Comments (0)

Files changed (1)

pygments/lexers/_robotframeworklexer.py

     def split(self, row):
         splitter = (row.startswith('| ') and self._split_from_pipes
                     or self._split_from_spaces)
-        for value in splitter(row.rstrip()):
+        for value in splitter(row):
             yield value
         yield '\n'