This commit is contained in:
yoannchb-pro
2023-03-23 01:49:12 -04:00
parent 5f4fca572b
commit c4913631ac
+2 -2
View File
@@ -26,8 +26,8 @@ function htmlTableToString(table: HTMLTableElement) {
"\n" + Array(lineSeparationSize).fill("-").join("") + "\n";
const mappedTab = tab.map((line) => {
const mappedLine = line.map((content, index) =>
content.padEnd(maxColumnsLength[index], "\u00A0")
const mappedLine = line.map(
(content, index) => content.padEnd(maxColumnsLength[index], "\u00A0") //for no matching with \s
);
return "|" + mappedLine.join("|") + "|";
});