[mod_python] Bugreport: mod_python replaces "\n" on \n

Jim Gallacher jpg at jgassociates.ca
Tue Nov 8 17:14:19 EST 2005

Anton wrote:
> Here is a result of @including:
> http://anton.lihost.org/c.py?page=01-getopt
> "\n"s inside printf function were replaced by new lines
> Here is the source:
> http://anton.lihost.org/c/01-getopt.c.html
> $ cat templates/c/01-getopt.tmpl
> ...
> <%@ include file="../../c/01-getopt.c.html" %>
> ...

This looks like a bug in the psp_parser itself, rather than in the 
include mechanism. The backslash-LF character pair is being parsed as a 
LF character. I've attached a small test which illustrates the behaviour.

Could you file a bug report on JIRA, Anton?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: psp_parse_error_test.tgz
Type: application/x-compressed-tar
Size: 346 bytes
Desc: not available
Url : http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20051108/63ccb4d9/psp_parse_error_test.bin

More information about the Mod_python mailing list