Skip to content

Commit e62d8db

Browse files
committed
Fix dedenting of <py-script> code
1 parent 442af7b commit e62d8db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyscriptjs/src/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ const getLastPath = function (str) {
99
};
1010

1111
function htmlDecode(input) {
12-
const doc = new DOMParser().parseFromString(input, 'text/html');
13-
return ltrim(doc.documentElement.textContent);
12+
const doc = new DOMParser().parseFromString(ltrim(input), 'text/html');
13+
return doc.documentElement.textContent;
1414
}
1515

1616
function ltrim(code: string): string {

0 commit comments

Comments
 (0)