mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
fix(code-snippet): remove whitespace from pre
tag (#1088)
Svelte v3.46.4 preserves whitespace inside `pre` tags by default; this removes whitespace from inside the `pre` tag in `CodeSnippet`.
This commit is contained in:
parent
933cf845c8
commit
2f556cdda3
1 changed files with 1 additions and 3 deletions
|
@ -190,9 +190,7 @@
|
|||
class:bx--snippet-container="{true}"
|
||||
style="width: 100%; min-height: {minHeight}px; max-height: {maxHeight}"
|
||||
>
|
||||
<pre bind:this="{ref}">
|
||||
<code><slot>{code}</slot></code>
|
||||
</pre>
|
||||
<pre bind:this="{ref}"><code><slot>{code}</slot></code></pre>
|
||||
</div>
|
||||
{#if !hideCopyButton}
|
||||
<CopyButton
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue