gcc484ntopperl-5.22
Last change
on this file since c5c522c was
c5c522c,
checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago
|
initial commit, transferred from cleaned syn3 svn tree
|
-
Property mode set to
100644
|
File size:
568 bytes
|
Rev | Line | |
---|
[c5c522c] | 1 | --- libvmime-0.9.2.orig/src/word.cpp 2014-08-21 10:30:25.360037840 +0200 |
---|
| 2 | +++ libvmime-0.9.2/src/word.cpp 2014-08-21 10:31:33.166782973 +0200 |
---|
| 3 | @@ -73,11 +73,13 @@ ref <word> word::parseNext(const string& |
---|
| 4 | // - before the first word |
---|
| 5 | // - between two encoded words |
---|
| 6 | // - after the last word |
---|
| 7 | + // Always ignore newlines |
---|
| 8 | string whiteSpaces; |
---|
| 9 | |
---|
| 10 | while (pos < end && parserHelpers::isSpace(buffer[pos])) |
---|
| 11 | { |
---|
| 12 | - whiteSpaces += buffer[pos]; |
---|
| 13 | + if(buffer[pos] != '\r' && buffer[pos] != '\n') // do not include newlines |
---|
| 14 | + whiteSpaces += buffer[pos]; |
---|
| 15 | ++pos; |
---|
| 16 | } |
---|
| 17 | |
---|
Note: See
TracBrowser
for help on using the repository browser.