Update of /cvsroot/mahogany/M/src/modules/viewflt
In directory sc8-pr-cvs1:/tmp/cvs-serv10851/src/modules/viewflt
Modified Files:
Signature.cpp
Log Message:
Make sure the line ends after the '-- ' signature marker
Index: Signature.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/modules/viewflt/Signature.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -b -u -2 -r1.4 -r1.5
--- Signature.cpp 1 Dec 2002 02:41:08 -0000 1.4
+++ Signature.cpp 5 Dec 2002 11:29:13 -0000 1.5
@@ -138,7 +138,8 @@
//
// NB: we accept "-- " (canonical) but also just "--" which is
- // unfortunately used by some people
+ // unfortunately used by some people.
+ // But we always make sure that the line ends just after.
if ( pc[0] == '-' && pc[1] == '-' &&
- (pc[2] == ' ' || pc[2] == '\r' || pc[2] == '\n') )
+ ((pc[2] == ' ' && (pc[3] == '\r' || pc[3] == '\n')) || pc[2] == '\r'
+|| pc[2] == '\n') )
{
// remember the signature and cut it off
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates