fix(core): update

This commit is contained in:
Philipp Kunz 2023-04-10 00:17:38 +02:00
parent 879ae5ad91
commit ee5b712a37
2 changed files with 2 additions and 2 deletions

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@designestate/dees-catalog', name: '@designestate/dees-catalog',
version: '1.0.165', version: '1.0.166',
description: 'website for lossless.com' description: 'website for lossless.com'
} }

View File

@ -164,7 +164,7 @@ export class DeesDataviewCodebox extends DeesElement {
} }
}); });
if (this.codeToDisplay && this.codeToDisplay !== this.codeToDisplayStore) { if (this.codeToDisplay && this.codeToDisplay !== this.codeToDisplayStore) {
this.codeToDisplayStore = smartstring.indent.normalize(this.codeToDisplay); this.codeToDisplayStore = smartstring.indent.normalize(this.codeToDisplay).trimStart();
} }
if (slottedCodeNodes[0] && slottedCodeNodes[0].wholeText && !this.codeToDisplay) { if (slottedCodeNodes[0] && slottedCodeNodes[0].wholeText && !this.codeToDisplay) {
this.codeToDisplayStore = smartstring.indent.normalize(slottedCodeNodes[0].wholeText); this.codeToDisplayStore = smartstring.indent.normalize(slottedCodeNodes[0].wholeText);