Bug #341

Witz template parser eats empty lines

Added by Jan Dolinár over 11 years ago. Updated over 11 years ago.

Status:ApprovedStart date:10/21/2012
Priority:HighDue date:
Assignee:Miroslav Fidler% Done:

100%

Category:Wpp (web framework)Spent time:-
Target version:-

Description

Empty lines get discarded when witz template is read. No big deal for general html, but in <pre> block or in plaintext it can make significant problems. Screenshot showing the problem and patch is included.

Only side-effect of the patch is that it always adds \r\n on the end of file, even where there was none before. But that is IMHO a feature rather than a bug (many text editors behave the same by default, e.g. nano or geany) :-) It could be fixed too if necessary, but I'm really not sure if it is worth it.

witz.png (106 KB) Jan Dolinár, 10/21/2012 01:14 AM

witz.patch Magnifier (948 Bytes) Jan Dolinár, 10/21/2012 01:34 AM

History

#1 Updated by Jan Dolinár over 11 years ago

Corrected the patch

#2 Updated by Jan Dolinár over 11 years ago

  • File deleted (witz.patch)

#3 Updated by Miroslav Fidler over 11 years ago

  • Status changed from Patch ready to Approved

Also available in: Atom PDF