mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
27.32.2009 1a75c24bf3008344ed09980d99799f4d46190dfb
opends/src/guitools/org/opends/guitools/controlpanel/ui/ProgressDialog.java
@@ -280,6 +280,7 @@
      msg = Utilities.applyFont(msg+"<br>", ColorAndFontConstants.progressFont);
      try
      {
        msg = filterForBugID4988885(msg);
        doc.insertBeforeStart(doc.getElement(LASTID), msg);
      }
      catch (Throwable t)
@@ -320,6 +321,7 @@
      try
      {
        msg = filterForBugID4988885(msg);
        doc.insertBeforeStart(doc.getElement(LASTID), msg);
      }
      catch (Throwable t)
@@ -619,4 +621,15 @@
      }
    }
  }
  /**
   * This is necessary because of bug 4988885.
   * http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4988885
   * @param msg the message.
   * @return the message filtered.
   */
  private static String filterForBugID4988885(String msg)
  {
    return msg.replaceAll("<br>", "<br>&#10;");
  }
}