How can I make sure that the tiddlers imported using the deserializer are correctly formatted?
By adhering to its simple rules.
While parsing the fields-section,
a basic sanity check may be good,e.g. "invalid field-name on line x"...whereas omitting a newlinebetween the fields and the tiddler textthrows this error, too.
Hello Tobias. My question was more focused about if there is a mechanism implemented already rather than asking for guidelines. Basically I wanted to avoid building something that exists already (if it does). But your "answer" is also correct and valid, so thank you.
I am wondering how the hell does tiddliwiki know that a .tid file is not correctly formatted.I have a tiddler, which does not have the correct tiddler format, but if I throw it's contents to the $tw.wiki.deserializeTiddlers function it parses it someway. Why? How can I make sure that the tiddlers imported using the deserializer are correctly formatted?
- there must be a title field
--
You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikide...@googlegroups.com.
To post to this group, send email to tiddly...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/386933f1-6f5a-4b9c-aa82-f8d66fb280e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
| From: Jeremy Ruston Sent: Sunday, October 4, 2015 3:50 PM Reply To: tiddly...@googlegroups.com Subject: Re: [twdev] [TW5] How does TW if a tiddler file is bad formatted? |