Skip to content

Commit

Permalink
fix(pb-odd-editor): outputRendition/@scope set to 'null'
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangmm committed Sep 3, 2020
1 parent 21dc2af commit a84b908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pb-odd-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ export class PbOddEditor extends pbHotkeys(pbMixin(LitElement)) {
}

serializeRendition(indent, rendition) {
const scope = this.serializeAttribute('scope', rendition.scope);
const scope = rendition.scope && rendition.scope !== 'null' ? this.serializeAttribute('scope', rendition.scope) : '';
const css = PbOddEditor.escape(rendition.css);
return `${indent}<outputRendition xml:space="preserve" ${scope}>\n${indent}${css}\n${indent}</outputRendition>\n`;
}
Expand Down

0 comments on commit a84b908

Please sign in to comment.