Commits

Tim Hatch committed 2479eb5 Merge

Merged in pekkaklarck/pygments-main (pull request #173)

Robot Framework lexer: Fixed handling trailing spaces.

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'