The doc/templates.rst states: "... default removal of the first newline inherited from PHP".
What are you talking about? Where PHP removes the first newline? I cannot google up anything like such a newline removal of PHP.
I think, this "default removal of the first newline" should be removed both from the Lexer class and from the doc.