12.0.11 #712
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user