-rw-r--r-- | kabc/vcard/ContentLine.cpp | 1 | ||||
-rw-r--r-- | kabc/vcardformatimpl.cpp | 8 | ||||
-rw-r--r-- | kabc/vcardparser/vcardparser.cpp | 2 | ||||
-rw-r--r-- | kabc/vcardparser/vcardtool.cpp | 10 |
4 files changed, 11 insertions, 10 deletions
diff --git a/kabc/vcard/ContentLine.cpp b/kabc/vcard/ContentLine.cpp index f7e04a9..c368172 100644 --- a/kabc/vcard/ContentLine.cpp +++ b/kabc/vcard/ContentLine.cpp | |||
@@ -307,6 +307,7 @@ ContentLine::_assemble() | |||
307 | ++cursor; | 307 | ++cursor; |
308 | } | 308 | } |
309 | strRep_ += line.mid( cursor * maxLen ); | 309 | strRep_ += line.mid( cursor * maxLen ); |
310 | //qDebug("ContentLine::_assemble()\n%s*****", strRep_.data()); | ||
310 | } | 311 | } |
311 | 312 | ||
312 | void | 313 | void |
diff --git a/kabc/vcardformatimpl.cpp b/kabc/vcardformatimpl.cpp index ede5773..c31af46 100644 --- a/kabc/vcardformatimpl.cpp +++ b/kabc/vcardformatimpl.cpp | |||
@@ -848,10 +848,10 @@ Agent VCardFormatImpl::readAgentValue( VCARD::ContentLine *cl ) | |||
848 | vstr.replace( "\\,", "," ); | 848 | vstr.replace( "\\,", "," ); |
849 | vstr.replace( "\\;", ";" ); | 849 | vstr.replace( "\\;", ";" ); |
850 | */ | 850 | */ |
851 | vstr.replace( QRegExp("\\n"), "\r\n" ); | 851 | vstr.replace( QRegExp("\\\\n"), "\r\n" ); |
852 | vstr.replace( QRegExp("\\:"), ":" ); | 852 | vstr.replace( QRegExp("\\\\:"), ":" ); |
853 | vstr.replace( QRegExp("\\,"), "," ); | 853 | vstr.replace( QRegExp("\\\\,"), "," ); |
854 | vstr.replace( QRegExp("\\;"), ";" ); | 854 | vstr.replace( QRegExp("\\\\;"), ";" ); |
855 | 855 | ||
856 | Addressee *addr = new Addressee; | 856 | Addressee *addr = new Addressee; |
857 | readFromString( vstr, *addr ); | 857 | readFromString( vstr, *addr ); |
diff --git a/kabc/vcardparser/vcardparser.cpp b/kabc/vcardparser/vcardparser.cpp index 9ea084d..bec2a0c 100644 --- a/kabc/vcardparser/vcardparser.cpp +++ b/kabc/vcardparser/vcardparser.cpp | |||
@@ -113,7 +113,7 @@ VCard::List VCardParser::parseVCards( const QString& text ) | |||
113 | 113 | ||
114 | //qDebug("VCardParser::parseVCards has to be verified"); | 114 | //qDebug("VCardParser::parseVCards has to be verified"); |
115 | //US vCardLine.setValue( value.replace( "\\n", "\n" ) ); | 115 | //US vCardLine.setValue( value.replace( "\\n", "\n" ) ); |
116 | vCardLine.setValue( value.replace( QRegExp("\\n"), "\n" ) ); | 116 | vCardLine.setValue( value.replace( QRegExp("\\\\n"), "\n" ) ); |
117 | } | 117 | } |
118 | 118 | ||
119 | currentVCard.addLine( vCardLine ); | 119 | currentVCard.addLine( vCardLine ); |
diff --git a/kabc/vcardparser/vcardtool.cpp b/kabc/vcardparser/vcardtool.cpp index 3fb212e..d1f823b 100644 --- a/kabc/vcardparser/vcardtool.cpp +++ b/kabc/vcardparser/vcardtool.cpp | |||
@@ -812,11 +812,11 @@ Agent VCardTool::parseAgent( const VCardLine &line ) | |||
812 | str.replace( "\\:", ":" ); | 812 | str.replace( "\\:", ":" ); |
813 | str.replace( "\\,", "," ); | 813 | str.replace( "\\,", "," ); |
814 | */ | 814 | */ |
815 | str.replace( QRegExp("\\n") , "\r\n" ); | 815 | str.replace( QRegExp("\\\\n") , "\r\n" ); |
816 | str.replace( QRegExp("\\N") , "\r\n" ); | 816 | str.replace( QRegExp("\\\\N") , "\r\n" ); |
817 | str.replace( QRegExp("\\;") , ";" ); | 817 | str.replace( QRegExp("\\\\;") , ";" ); |
818 | str.replace( QRegExp("\\:") , ":" ); | 818 | str.replace( QRegExp("\\\\:") , ":" ); |
819 | str.replace( QRegExp("\\,") , "," ); | 819 | str.replace( QRegExp("\\\\,") , "," ); |
820 | 820 | ||
821 | Addressee::List list = parseVCards( str ); | 821 | Addressee::List list = parseVCards( str ); |
822 | if ( list.count() > 0 ) { | 822 | if ( list.count() > 0 ) { |