I have a few tiddler which are saved in json in my tiddlywiki server, no matter their type, which is normally tw5. And I must have them saved according to my conventions, shown below.
$:/config/FileSystemExtensions
:
[field:type[application/x-tiddler-dictionary]then[.dic]]
[field:type[text/vnd.tiddlywiki]then[.tw5]]
[field:type[]then[.tw5]]
[field:type[text/plain]then[.txt]]
$:/config/FileSystemPaths
:
[is[system]!has[draft.of]removeprefix[$:/]search-replace:g[_],[-]search-replace:g:regexp[/+],[_]slugify[]search-replace:g:regexp[(-|\.)*_+(-|\.)*],[/]search-replace:g:regexp[^\.+(-*|\.*)*|\.+],[.]search-replace:g:regexp[-\.|\.-],[-]search-replace:g:regexp[^-|^\.|-$|\.$|_$],[]addprefix[_system/]]
[is[draft]slugify[]addprefix[_drafts/]]
[!is[system]slugify[]search-replace:g:regexp[_+],[-]search-replace:g:regexp[^\.+(-*|\.*)*|\.+],[.]search-replace:g:regexp[-\.|\.-],[-]search-replace:g:regexp[-+],[-]search-replace:g:regexp[^-|^\.|-$|\.$|_$],[]]
With investigation, I found out that the transformation to json is made whenever a field of the tiddler has a value beginning of finishing with a space! This is reversible.
But where is the bug?