From b6760d9d400b469875b9ecb034ff7e8d3b161385 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 29 Dec 2023 19:45:02 -0400 Subject: html: don't place blockwrap at start of content --- src/util/html.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/util/html.js b/src/util/html.js index 08d03bc7..df7fa8c4 100644 --- a/src/util/html.js +++ b/src/util/html.js @@ -477,8 +477,10 @@ export class Tag { // Blockwraps only apply if they actually contain some content whose // words should be kept together, so it's okay to put them beneath the - // itemContent check. - if (item instanceof Tag && item.blockwrap) { + // itemContent check. They also never apply at the very start of content, + // because at that point there aren't any preceding words from which the + // blockwrap would differentiate its content. + if (item instanceof Tag && item.blockwrap && content) { content += ``; blockwrapClosers += ``; } -- cgit 1.3.0-6-gf8a5