From: Jim Procter Date: Thu, 24 Mar 2022 17:02:10 +0000 (+0000) Subject: JAL-3981 strategic newlines to help speed up Java's html parser X-Git-Tag: Release_2_11_2_1~4^2~3 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=70a6730dba4ab0af6906fd8f874fe853c02efef0;p=jalview.git JAL-3981 strategic newlines to help speed up Java's html parser --- diff --git a/src/jalview/gui/PopupMenu.java b/src/jalview/gui/PopupMenu.java index fcd8171..6903034 100644 --- a/src/jalview/gui/PopupMenu.java +++ b/src/jalview/gui/PopupMenu.java @@ -1817,7 +1817,7 @@ public class PopupMenu extends JPopupMenu implements ColourChangeListener contents.append("

" + MessageManager.formatMessage( "label.create_sequence_details_report_annotation_for", new Object[] - { seq.getDisplayId(true) }) + "

"); + { seq.getDisplayId(true) }) + "

\n

"); new SequenceAnnotationReport(false).createSequenceAnnotationReport( contents, seq, true, true, ap.getSeqPanel().seqCanvas.fr); contents.append("

"); diff --git a/src/jalview/io/SequenceAnnotationReport.java b/src/jalview/io/SequenceAnnotationReport.java index c5bc902..369839a 100644 --- a/src/jalview/io/SequenceAnnotationReport.java +++ b/src/jalview/io/SequenceAnnotationReport.java @@ -493,6 +493,7 @@ public class SequenceAnnotationReport sb.append(tmp); maxWidth = Math.max(maxWidth, tmp.length()); } + sb.append("\n"); SequenceI ds = sequence; while (ds.getDatasetSequence() != null) { @@ -503,6 +504,7 @@ public class SequenceAnnotationReport { maxWidth = Math.max(maxWidth, appendDbRefs(sb, ds, summary)); } + sb.append("\n"); /* * add non-positional features if wanted @@ -576,7 +578,7 @@ public class SequenceAnnotationReport countForSource++; if (countForSource == 1 || !summary) { - sb.append("
"); + sb.append("
\n"); } if (countForSource <= MAX_REFS_PER_SOURCE || !summary) {