9 messages in ru.sysoev.nginxmod_strip newline substitution problem
FromSent OnAttachments
CalomelApr 30, 2008 2:32 pm 
Evan MillerMay 2, 2008 12:33 pm 
Rt IbmerMay 2, 2008 8:17 pm 
mikeMay 2, 2008 8:55 pm 
Evan MillerMay 3, 2008 11:39 am 
Raul RiveroMay 3, 2008 1:29 pm 
Tomek N.May 3, 2008 3:24 pm 
Rt IbmerMay 3, 2008 6:35 pm 
Raul RiveroMay 4, 2008 1:33 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:mod_strip newline substitution problemActions...
From:Calomel (ngin@public.gmane.org)
Date:Apr 30, 2008 2:32:58 pm
List:ru.sysoev.nginx

@Evan Miller

I built Nginx 0.6.30 with the third party module mod_strip. The problem I am seeing is when mod_strip removes a newline "\n" it does not replace it with a space. Instead, the last word of one line is jammed next to the first word of the next line. If it helps I am writing the HTML files by hand using the editor, "vi".

For example, The following text is on two lines and entered as:

This is a test Allow me to explain

When mod_strip encounters the newline at "test\n" then both lines are joined, but the words "test" and "Allow" are jammed together:

This is a testAllow me to explain

Perhaps when a newline is seen mod_strip should add a space and check for double spaces afterward?

BTW, everything else mod_strip touches is formated correctly and I have had no issues with any other facet of the program. If there is a fix I would be happy to test it.

Thanks for your time.