minor formatting of tooltip
authoramwaterhouse <Andrew Waterhouse>
Wed, 9 May 2007 13:12:47 +0000 (13:12 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 9 May 2007 13:12:47 +0000 (13:12 +0000)
src/jalview/gui/AnnotationLabels.java
src/jalview/gui/IdPanel.java

index a4be664..0faa8b0 100755 (executable)
@@ -369,7 +369,9 @@ public class AnnotationLabels
 
       if (aa.description != null && !aa.description.equals("New description"))
       {
-        desc.append(aa.description+"<br>");
+        desc.append(aa.description);
+        if(aa.hasScore)
+          desc.append("<br>");
       }
       if(aa.hasScore())
       {
index 4ca622d..b9366ae 100755 (executable)
@@ -75,19 +75,19 @@ public class IdPanel
     {\r
       SequenceI sequence = av.alignment.getSequenceAt(seq);\r
       StringBuffer tip = new StringBuffer();\r
+      tip.append("<i>");\r
 \r
       int maxWidth = 0;\r
       if (sequence.getDescription() != null)\r
       {\r
         tmp = sequence.getDescription();\r
-        tip.append(tmp);\r
+        tip.append("<br>"+tmp);\r
         maxWidth = Math.max(maxWidth, tmp.length());\r
       }\r
 \r
       DBRefEntry[] dbrefs = sequence.getDatasetSequence().getDBRef();\r
       if (dbrefs != null)\r
       {\r
-        tip.append("<i>");\r
         for (int i = 0; i < dbrefs.length; i++)\r
         {\r
           tip.append("<br>");\r
@@ -95,7 +95,6 @@ public class IdPanel
           tip.append(tmp);\r
           maxWidth = Math.max(maxWidth, tmp.length());\r
         }\r
-        tip.append("</i>");\r
       }\r
 \r
 \r