}
/**
- * Escape the given value to VCF standard.
+ * Unescape the given value from the VCF standard.
*
* @param value
- * the value to escape
+ * the value to unescape
*
- * @return the escaped value
+ * @return the unescaped value
*/
protected String unescape(String value) {
if (value == null)
return null;
return value.replaceAll("\\\\,", ",").replaceAll("\\\\;", ";")
-
- .replaceAll("\\\\n", "\n");
+ .replaceAll("\\\\n", "\n");
}
/**
+ trans(StringId.CLI_HELP_LANG));
System.out.println("\t--tui : " + trans(StringId.CLI_HELP_TUI));
System.out.println("\t--gui : " + trans(StringId.CLI_HELP_GUI));
- System.out.println("\t--noutf : " + trans(StringId.CLI_HELP_NOUTF_OPTION));
+ System.out.println("\t--noutf : "
+ + trans(StringId.CLI_HELP_NOUTF_OPTION));
System.out.println("\t--config : "
+ trans(StringId.CLI_HELP_CONFIG));
System.out.println();
Data name = contact.getPreferredData("FN");
if (name == null || name.getValue().length() == 0
|| forceComputedFn) {
- name.setValue(contact.toString(defaultFn, ""));
+ name.setValue(contact.toString(defaultFn, "").trim());
}
}
} catch (Exception e) {