The problem is that I can&#39;t replace newlines before end tags with a space:<br><br><a href="http://www.emf.net/~estephen/htmlner/whitespacebugs.html">http://www.emf.net/~estephen/htmlner/whitespacebugs.html</a><br><br>Unfortunately mod_strip doesn&#39;t support look-ahead. When it encounters a newline, it has to decide what to do with it before examining subsequent characters (that is, before examining whether the newline precedes an end tag).<br>
<br>Short of rewriting to support look-ahead, maybe I could support options:<br><br>location ... {<br>&nbsp;&nbsp;&nbsp;&nbsp;strip on;<br>&nbsp;&nbsp;&nbsp;&nbsp;strip_characters tabs spaces newlines;<br>}<br><br>By default perhaps newlines shouldn&#39;t be processed. What do you think? In any event, I will update the docs to reflect this bug.<br>
<br>Thanks,<br><br>Evan<br><br><div><span class="gmail_quote">On 4/30/08, <b class="gmail_sendername">Calomel</b> &lt;<a href="mailto:nginxlist@calomel.org">nginxlist@calomel.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
@Evan Miller<br><br> I built Nginx 0.6.30 with the third party module mod_strip. The problem I<br> am seeing is when mod_strip removes a newline &quot;\n&quot; it does not replace it<br> with a space. Instead, the last word of one line is jammed next to the<br>
 first word of the next line. If it helps I am writing the HTML files by<br> hand using the editor, &quot;vi&quot;.<br><br> For example, The following text is on two lines and entered as:<br><br> This is a test<br> Allow me to explain<br>
<br><br> When mod_strip encounters the newline at &quot;test\n&quot; then both lines are<br> joined, but the words &quot;test&quot; and &quot;Allow&quot; are jammed together:<br><br> This is a testAllow me to explain<br><br>
 Perhaps when a newline is seen mod_strip should add a space and check for<br> double spaces afterward?<br><br><br> BTW, everything else mod_strip touches is formated correctly and I have had<br> no issues with any other facet of the program. If there is a fix I would be<br>
 happy to test it.<br><br> Thanks for your time.<br><br><br> --<br>&nbsp;&nbsp;Calomel @ <a href="http://calomel.org">http://calomel.org</a><br>&nbsp;&nbsp;Open Source Research and Reference<br><br><br></blockquote></div><br><br clear="all">
<br>-- <br>Evan Miller<br><a href="http://emiller.info/">http://emiller.info/</a>