An empty line at first has been ignored with HTML formatter

Issue #1111 closed
Komiya Takeshi
created an issue

With HTML formatter, an empty line at first has been ignored. I got the problem when using -O stripnl=False option.

Maybe, it comes from that browsers ignore return code following <pre> tag.

Comments (3)

  1. Thomas Gläßle

    Hey, I just wanted to add: this is especially irritating when used with line numbers. The line numbers then appear shifted with regard to the actual code. This almost always occurs when using linenostep > 1 with linenostart > 1. It can be fixed by inserting an additional space in the first line. Maybe there is another character that is better suited for this purpose.

    EDIT: Probably better to use an "empty-line" span like <span class="el"></span>

  2. Log in to comment