Hi, I have tried to highlight code that does not end with a new line, using pygments.highlight in combination with the NullFormatter and the TextLexer. I have expected this to be a no-operation, yet the formatted text unexpectingly ends with a new line character! I am not completely sure whether this behaviour is a bug or an intended feature. I will attach a unit test describing the setup.
(Pygments version 1.0, Python 2.6.4)
Reported by lts4life