12.0.11 #712

Merged
uberwald merged 8 commits from VincentVk/foundryvtt-reve-de-dragon:v11 into v11 2024-10-02 07:37:43 +02:00
Showing only changes of commit 74b184aa32 - Show all commits

View File

@ -50,12 +50,12 @@ export class ExportScriptarium {
}
exportActors(actors, targetName) {
const eol = '\n'
const eol = '\n\r'
const header = Misc.join(this.getHeaderLine(), ';')
const actorLines = actors.map(actor => Misc.join(this.getActorLine(actor), ';'))
const data = Misc.join([header, ...actorLines], eol)
const filename = `scriptarium-${targetName?.slugify()}.csv`;
saveDataToFile(data, "text/csv;charset=utf-8", `${filename}`);
saveDataToFile(data, "text/csv;charset=windows-1252", `${filename}`);
}
getHeaderLine() {