Skip to content

Commit 232ed35

Browse files
jaredmaxwellmportuga
authored andcommitted
feat(exporter):Allow deeper pdf formatting options
1 parent 15a1e66 commit 232ed35

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/features/exporter/js/exporter.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,6 +1230,10 @@
12301230
returnVal = (field.value ? 'TRUE' : 'FALSE') ;
12311231
} else if (typeof(field.value) === 'string') {
12321232
returnVal = field.value.replace(/"/g,'""');
1233+
} else if (field.value instanceof Date) {
1234+
returnVal = JSON.stringify(field.value).replace(/^"/,'').replace(/"$/,'');
1235+
} else if (typeof(field.value) === 'object') {
1236+
returnVal = field.value;
12331237
} else {
12341238
returnVal = JSON.stringify(field.value).replace(/^"/,'').replace(/"$/,'');
12351239
}

0 commit comments

Comments
 (0)