Skip to content

Commit

Permalink
printing 0 for empty cells
Browse files Browse the repository at this point in the history
  • Loading branch information
timlg07 committed Feb 24, 2019
1 parent f9eaca1 commit 80ebedd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion export.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function download(data, filename, type) {

function export_(){
let type = "text/plain;charset=utf-8",
text = $storage.speicherZellen.map((o,i)=>o.value+((i%2==0)?" ":"\n")).join(""),
text = $storage.speicherZellen.map((o,i)=>(o.value||0)+((i%2==0)?" ":"\n")).join(""),
file = "assembler_export_"+Date.now();
download(text,file,type);
}

0 comments on commit 80ebedd

Please sign in to comment.