Skip to content

Commit d8cb5f2

Browse files
authored
Merge pull request pyscript#130 from pyscript/dedent_code
Fix dedenting of <py-script> code
2 parents 70d4014 + e62d8db commit d8cb5f2

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)