mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +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}"
|
class:bx--snippet-container="{true}"
|
||||||
style="width: 100%; min-height: {minHeight}px; max-height: {maxHeight}"
|
style="width: 100%; min-height: {minHeight}px; max-height: {maxHeight}"
|
||||||
>
|
>
|
||||||
<pre bind:this="{ref}">
|
<pre bind:this="{ref}"><code><slot>{code}</slot></code></pre>
|
||||||
<code><slot>{code}</slot></code>
|
|
||||||
</pre>
|
|
||||||
</div>
|
</div>
|
||||||
{#if !hideCopyButton}
|
{#if !hideCopyButton}
|
||||||
<CopyButton
|
<CopyButton
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue