svelte-portabletext icon indicating copy to clipboard operation
svelte-portabletext copied to clipboard

Extraneous whitespace around comments

Open nonphoto opened this issue 2 years ago • 3 comments

Svelte preserves whitespace inside regular tags. HTML comments are stripped out by the compiler, but the whitespace around them is not, causing the component output to have extraneous newlines. This is an issue with pre tags and white-space: pre or pre-line in CSS. We should remove the comments, or at least include the whitespace inside the comment delimiters.

nonphoto avatar Jan 05 '22 02:01 nonphoto