From 70a6730dba4ab0af6906fd8f874fe853c02efef0 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Thu, 24 Mar 2022 17:02:10 +0000 Subject: [PATCH] JAL-3981 strategic newlines to help speed up Java's html parser --- src/jalview/gui/PopupMenu.java | 2 +- src/jalview/io/SequenceAnnotationReport.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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) { -- 1.7.10.2