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

Anton selecter at gmail.com
Tue Nov 8 17:20:47 EST 2005


You were right!
Test has given an output:
BEGIN TEST
( )
END TEST

Sure I will file a bug there

2005/11/9, Jim Gallacher <jpg at jgassociates.ca>:
> 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?
> http://issues.apache.org/jira/browse/MODPYTHON
>
> Thanks,
> Jim
>
>
>
>



More information about the Mod_python mailing list