From 6de402db90987d3645f3429d9073c13678d8e980 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Wed, 9 May 2007 13:12:47 +0000 Subject: [PATCH] minor formatting of tooltip --- src/jalview/gui/AnnotationLabels.java | 4 +++- src/jalview/gui/IdPanel.java | 5 ++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/jalview/gui/AnnotationLabels.java b/src/jalview/gui/AnnotationLabels.java index a4be664..0faa8b0 100755 --- a/src/jalview/gui/AnnotationLabels.java +++ b/src/jalview/gui/AnnotationLabels.java @@ -369,7 +369,9 @@ public class AnnotationLabels if (aa.description != null && !aa.description.equals("New description")) { - desc.append(aa.description+"
"); + desc.append(aa.description); + if(aa.hasScore) + desc.append("
"); } if(aa.hasScore()) { diff --git a/src/jalview/gui/IdPanel.java b/src/jalview/gui/IdPanel.java index 4ca622d..b9366ae 100755 --- a/src/jalview/gui/IdPanel.java +++ b/src/jalview/gui/IdPanel.java @@ -75,19 +75,19 @@ public class IdPanel { SequenceI sequence = av.alignment.getSequenceAt(seq); StringBuffer tip = new StringBuffer(); + tip.append(""); int maxWidth = 0; if (sequence.getDescription() != null) { tmp = sequence.getDescription(); - tip.append(tmp); + tip.append("
"+tmp); maxWidth = Math.max(maxWidth, tmp.length()); } DBRefEntry[] dbrefs = sequence.getDatasetSequence().getDBRef(); if (dbrefs != null) { - tip.append(""); for (int i = 0; i < dbrefs.length; i++) { tip.append("
"); @@ -95,7 +95,6 @@ public class IdPanel tip.append(tmp); maxWidth = Math.max(maxWidth, tmp.length()); } - tip.append("
"); } -- 1.7.10.2