mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-09-15 22:31:24 +00:00
Reverting changes to stringifyList (#4249)
I (Flibbles) changed it so that lists generated by stringifyList would always be compatible with a filter parser, but since lists are not, and never will be, a subset of filters, there isn't a point. More importantly, wrapping negative numbers like "-7" in brackets would mess up some math stuff.
This commit is contained in:
committed by
Jeremy Ruston
parent
953038f0b2
commit
fb12807a33
+1
-1
@@ -317,7 +317,7 @@ $tw.utils.stringifyList = function(value) {
|
||||
var result = new Array(value.length);
|
||||
for(var t=0, l=value.length; t<l; t++) {
|
||||
var entry = value[t] || "";
|
||||
if(entry.indexOf(" ") !== -1 || "+-~=".indexOf(entry[0]) !== -1) {
|
||||
if(entry.indexOf(" ") !== -1) {
|
||||
result[t] = "[[" + entry + "]]";
|
||||
} else {
|
||||
result[t] = entry;
|
||||
|
||||
Reference in New Issue
Block a user