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:
parent
65026bd0f7
commit
a7036a1b0d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue