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
Refresh data on "Back", allow configuration of View + border
[jvcard.git]
/
src
/
be
/
nikiroo
/
jvcard
/
resources
/
StringUtils.java
diff --git
a/src/be/nikiroo/jvcard/resources/StringUtils.java
b/src/be/nikiroo/jvcard/resources/StringUtils.java
index bfe0d3da44782e82db58416549c1b11a3f74a33e..2009dce628ef48864d48cf51c31bab5e6eae9813 100644
(file)
--- a/
src/be/nikiroo/jvcard/resources/StringUtils.java
+++ b/
src/be/nikiroo/jvcard/resources/StringUtils.java
@@
-22,8
+22,7
@@
public class StringUtils {
* @param text
* the {@link String} to fix
* @param width
* @param text
* the {@link String} to fix
* @param width
- * the size of the resulting {@link String} if the text fits or
- * if cut is TRUE
+ * the size of the resulting {@link String} or -1 for a noop
*
* @return the resulting {@link String} of size <i>size</i>
*/
*
* @return the resulting {@link String} of size <i>size</i>
*/
@@
-39,7
+38,7
@@
public class StringUtils {
* the {@link String} to fix
* @param width
* the size of the resulting {@link String} if the text fits or
* the {@link String} to fix
* @param width
* the size of the resulting {@link String} if the text fits or
- * if cut is TRUE
+ * if cut is TRUE
or -1 for a noop
* @param cut
* cut the {@link String} shorter if needed
* @param align
* @param cut
* cut the {@link String} shorter if needed
* @param align
@@
-50,7
+49,7
@@
public class StringUtils {
*/
static public String padString(String text, int width, boolean cut,
Alignment align) {
*/
static public String padString(String text, int width, boolean cut,
Alignment align) {
-
+
if (width >= 0) {
if (text == null)
text = "";
if (width >= 0) {
if (text == null)
text = "";