diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-03-01 21:11:36 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-03-01 21:11:36 -0400 |
commit | 62cd6e574b89a5bfa75dc52ef2383fddf5cbc87a (patch) | |
tree | d0c79910842e977847b125fed8c8d7170e630b25 /src/util/html.js | |
parent | 62f64b3aa019747e9c764eda853591b321850ca0 (diff) |
display original file size in image overlay
Diffstat (limited to 'src/util/html.js')
-rw-r--r-- | src/util/html.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/util/html.js b/src/util/html.js index 459a1647..1c55fb8c 100644 --- a/src/util/html.js +++ b/src/util/html.js @@ -63,9 +63,11 @@ export function tag(tagName, ...args) { const joiner = attrs?.[joinChildren]; content = content.filter(Boolean).join( - (joiner - ? `\n${joiner}\n` - : '\n')); + (joiner === '' + ? '' + : (joiner + ? `\n${joiner}\n` + : '\n'))); } if (attrs?.[onlyIfContent] && !content) { |