Description
An empty line is appended when I use the highlight parser and the code is ended with comment.
Example
1 int a;
1 a = 42 # comment works ok
1 export A=42
Details
MoinMoin Version |
1.9.0 |
Discussion
The comment of python for highlighting python does not add an empty line
cause
pygments produces (Token.Comment.Single, 'comment\n') for single line comment. In PygmentsFormatter.format of MoinMoin/parser/highlight.py, the result of self.line_re.split(value) is ['comment', '\n', '\']. In here, the last empty string makes an empty line.
correction
(or remove the last empty string from the result of split?)
Plan
- Priority:
- Assigned to:
- Status: