mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-14 11:42:23 -05:00
Carddav: fix regression in VCardWriter
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1220 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
d5f2f73691
commit
bb1b0047b4
@ -27,6 +27,17 @@ public class VCardWriter extends ICSBufferedWriter {
|
||||
writeLine("VERSION:3.0");
|
||||
}
|
||||
|
||||
public void appendProperty(String propertyName, String propertyValue) {
|
||||
if ((propertyValue != null) && (propertyValue.length() > 0)) {
|
||||
write(propertyName);
|
||||
write(":");
|
||||
StringBuilder valueBuffer = new StringBuilder();
|
||||
appendEncodedValue(valueBuffer, propertyValue);
|
||||
writeLine(valueBuffer.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void appendProperty(String propertyName, String... propertyValue) {
|
||||
boolean hasValue = false;
|
||||
for (String value : propertyValue) {
|
||||
|
Loading…
Reference in New Issue
Block a user