From 90933fd0e3b7ca36378d4857276ca0f2ef91d7ab Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Thu, 12 Jul 2007 18:39:47 +0000
Subject: [PATCH] Utils test cases and edited method javadoc

---
 opends/src/quicksetup/org/opends/quicksetup/util/Utils.java |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/util/Utils.java b/opends/src/quicksetup/org/opends/quicksetup/util/Utils.java
index 913958f..d850a97 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/util/Utils.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/util/Utils.java
@@ -1194,14 +1194,18 @@
 
   /**
    * Inserts HTML break tags into <code>d</code> breaking it up
-   * so that no line is longer than <code>maxll</code>.
+   * so that ideally no line is longer than <code>maxll</code>
+   * assuming no single word is longer then <code>maxll</code>.
+   * If the string already contains HTML line breaks, they are
+   * respected by this method when calculating where to place
+   * new breaks to control the maximum line length.
+   *
    * @param d String to break
    * @param maxll int maximum line length
    * @return String representing <code>d</code> with HTML break
    *         tags inserted
    */
   static public String breakHtmlString(String d, int maxll) {
-    // Primitive line wrapping
     int len = d.length();
     if (len <= 0)
       return d;

--
Gitblit v1.10.0