Merge remote-tracking branch 'remotes/origin/2_5_1_rna_merge' into develop (JAL-826)
[jalview.git] / src / jalview / datamodel / AlignmentAnnotation.java
index ad07680..4c57c89 100755 (executable)
@@ -1,6 +1,6 @@
 /*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.6)
- * Copyright (C) 2010 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)
+ * Copyright (C) 2011 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle
  * 
  * This file is part of Jalview.
  * 
@@ -884,6 +884,12 @@ public class AlignmentAnnotation
   {
     if (seqname && this.sequenceRef != null)
     {
+      int i=description.toLowerCase().indexOf("<html>");
+      if (i>-1)
+      {
+        // move the html tag to before the sequence reference.
+        return "<html>"+sequenceRef.getName()+" : "+description.substring(i+6);
+      }
       return sequenceRef.getName() + " : " + description;
     }
     return description;