Fix dedenting of <py-script> code

This commit is contained in:
Philipp Rudiger
2022-05-03 00:55:55 +02:00
parent 442af7bd97
commit e62d8db050

View File

@@ -9,8 +9,8 @@ const getLastPath = function (str) {
};
function htmlDecode(input) {
const doc = new DOMParser().parseFromString(input, 'text/html');
return ltrim(doc.documentElement.textContent);
const doc = new DOMParser().parseFromString(ltrim(input), 'text/html');
return doc.documentElement.textContent;
}
function ltrim(code: string): string {