mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-22 06:56:52 +00:00
Merge branch 'master' into multi-wiki-support
This commit is contained in:
commit
2ba3643a0c
@ -35,12 +35,14 @@ exports.run = function(filter,format) {
|
|||||||
// Collect all the fields
|
// Collect all the fields
|
||||||
for(t=0;t<tiddlers.length; t++) {
|
for(t=0;t<tiddlers.length; t++) {
|
||||||
tiddler = this.wiki.getTiddler(tiddlers[t]);
|
tiddler = this.wiki.getTiddler(tiddlers[t]);
|
||||||
|
if(tiddler) {
|
||||||
for(f in tiddler.fields) {
|
for(f in tiddler.fields) {
|
||||||
if(fields.indexOf(f) === -1) {
|
if(fields.indexOf(f) === -1) {
|
||||||
fields.push(f);
|
fields.push(f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// Sort the fields and bring the standard ones to the front
|
// Sort the fields and bring the standard ones to the front
|
||||||
fields.sort();
|
fields.sort();
|
||||||
"title text modified modifier created creator".split(" ").reverse().forEach(function(value,index) {
|
"title text modified modifier created creator".split(" ").reverse().forEach(function(value,index) {
|
||||||
@ -60,9 +62,11 @@ exports.run = function(filter,format) {
|
|||||||
for(var t=0;t<tiddlers.length; t++) {
|
for(var t=0;t<tiddlers.length; t++) {
|
||||||
row = [];
|
row = [];
|
||||||
tiddler = this.wiki.getTiddler(tiddlers[t]);
|
tiddler = this.wiki.getTiddler(tiddlers[t]);
|
||||||
|
if(tiddler) {
|
||||||
for(f=0; f<fields.length; f++) {
|
for(f=0; f<fields.length; f++) {
|
||||||
row.push(quoteAndEscape(tiddler ? tiddler.getFieldString(fields[f]) || "" : ""));
|
row.push(quoteAndEscape(tiddler ? tiddler.getFieldString(fields[f]) || "" : ""));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
output.push(row.join(","));
|
output.push(row.join(","));
|
||||||
}
|
}
|
||||||
return output.join("\n");
|
return output.join("\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user