git://git.nikiroo.be
/
jvcard.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New launcher class to start all 3 modes:
[jvcard.git]
/
src
/
be
/
nikiroo
/
jvcard
/
Contact.java
diff --git
a/src/be/nikiroo/jvcard/Contact.java
b/src/be/nikiroo/jvcard/Contact.java
index 4c6d5d443b9075d42823af98660df19c904c88d9..ce701a26a60ad88031881a13b71291b72c1ef627 100644
(file)
--- a/
src/be/nikiroo/jvcard/Contact.java
+++ b/
src/be/nikiroo/jvcard/Contact.java
@@
-11,7
+11,7
@@
import java.util.UUID;
import be.nikiroo.jvcard.parsers.Format;
import be.nikiroo.jvcard.parsers.Parser;
import be.nikiroo.jvcard.parsers.Format;
import be.nikiroo.jvcard.parsers.Parser;
-import be.nikiroo.jvcard.
tui
.StringUtils;
+import be.nikiroo.jvcard.
resources
.StringUtils;
/**
* A contact is the information that represent a contact person or organisation.
/**
* A contact is the information that represent a contact person or organisation.
@@
-103,7
+103,14
@@
public class Contact extends BaseClass<Data> {
*/
public String toString(Format format, int startingBKey) {
updateBKeys(false);
*/
public String toString(Format format, int startingBKey) {
updateBKeys(false);
- return Parser.toString(this, format, startingBKey);
+
+ StringBuilder builder = new StringBuilder();
+ for (String line : Parser.toStrings(this, format, startingBKey)) {
+ builder.append(line);
+ builder.append("\r\n");
+ }
+
+ return builder.toString();
}
/**
}
/**