I think I found part of why it is different:<br><br><span class="q">sentences = re.split(r'((?:\.|\?|!|\n\n)\s*)', msg)</span><br><br>is not splitting msg correctly because windows and unix have different newline characters.(?)
<br><br>try:<br><br><span class="q">sentences = re.split(r'((?:\.|\?|!|\n\n|\r\n)\s*)', msg)</span><br><br>references:<br><a href="http://en.wikipedia.org/wiki/Newline#Newline_in_programming_languages">http://en.wikipedia.org/wiki/Newline#Newline_in_programming_languages
</a><br><a href="http://www.python.org/dev/peps/pep-0278/">http://www.python.org/dev/peps/pep-0278/</a><br><br>-isaac<br><br><div><span class="gmail_quote">On 3/5/07, <b class="gmail_sendername">Bob Ippolito</b> <<a href="mailto:bob@redivi.com">
bob@redivi.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On 3/5/07, wesley chun <<a href="mailto:wescpy@gmail.com">
wescpy@gmail.com</a>> wrote:<br>> On 3/4/07, Isaac <<a href="mailto:hyperneato@gmail.com">hyperneato@gmail.com</a>> wrote:<br>> > This will capitalize the "I" and "I've" and keep the original capitals in
<br>> > the 'msg'.<br>> > Thanks for the inspiration. I had a great time hacking!<br>><br>><br>> is there a way to generalize "i'"? you'd need to support "i'm",
<br>> "i'd", "i'll", etc.<br>><br>> finally, is there a way to incorporate all your code into gmail so<br>> that it does it automagically when i click "send"? :-)<br><br>
Rewrite it in JavaScript and use Greasemonkey? The code would<br>practically be the same since it's mostly just regex sludge.<br><br>-bob<br></blockquote></div><br>