avoid eating the trailing newline after PHOTO

git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@86 15ad00c4-1369-45f4-8270-35d70d36bdcd
This commit is contained in:
Patrick Ohly 2006-04-24 20:00:18 +00:00
parent 65026bd0f7
commit a7036a1b0d
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ sub Normalize {
s/^PHOTO;(.*)TYPE=[A-Z]*/PHOTO;$1/mg;
# encoding is not case sensitive, skip white space in the middle of binary data
if (s/^PHOTO;.*?ENCODING=(b|B|BASE64).*?:\s*/PHOTO;ENCODING=B: /mgi) {
while (s/^PHOTO(.*?): (.*?)\s+/PHOTO$1: $2/mg) {}
while (s/^PHOTO(.*?): (\S+)[\t ]+(\S+)/PHOTO$1: $2$3/mg) {}
}
# remove extra timezone specification, it is not supported