JAL-1833 revised implementation
[jalview.git] / src / jalview / gui / JvSwingUtils.java
index a9d0e75..c4ed0dc 100644 (file)
@@ -87,9 +87,9 @@ public final class JvSwingUtils
     }
     else
     {
-      return enclose ? "<html><style> p.ttip {width: 350; text-align: justify; word-wrap: break-word;}</style><p class=\"ttip\">"
-              + ttext + "</p></html>"
-              : ttext;
+      return (enclose ? "<html>" : "")
+              + "<style> p.ttip {width: 350; text-align: justify; word-wrap: break-word;}</style><p class=\"ttip\">"
+              + ttext + "</p>" + ((enclose ? "</html>" : ""));
     }
   }