JAL-3423 testNG fix for revised tooltip html format
[jalview.git] / src / jalview / gui / JvSwingUtils.java
index c1c8c82..b25b2c8 100644 (file)
@@ -56,6 +56,8 @@ import javax.swing.border.TitledBorder;
  */
 public final class JvSwingUtils
 {
+  public static final String HTML_PREFIX = "<html><div style=\"width:350px;white-space:pre-wrap;padding:2px;overflow-wrap:break-word;\">";
+
   /**
    * wrap a bare html safe string to around 60 characters per line using a CSS
    * style class specifying word-wrap and break-word
@@ -97,7 +99,7 @@ public final class JvSwingUtils
     }
     // BH 2018,2019
     return (enclose
-            ? "<html><div style=\"width:350px;white-space:pre-wrap;padding:2px;overflow-wrap:break-word;\">"
+            ? HTML_PREFIX
             + ttext
                     + "</div></html>"
             : ttext);