"Does the "text" field store data differently to other fields?"
I am not an expert, but think I know the answer to your question, and would love to be corrected. Text fields are handled the "same" as any other field. That said, the tiddlywiki core or your overriding viewtemplate tiddlers can change the display behavior. I would use this to find these tiddlers: <$list filter="[tag[$:/tags/ViewTemplate]]" > </$list> JWHoneycutt On Saturday, May 15, 2021 at 11:11:39 AM UTC-4 si wrote: > Sorry to bump this but I did a little test and looked at the source to see > how the data was stored. > > I create a tiddler like this: > > [image: tiddler.png] > > Then I used action-setfield to move the text to a field called "test". > When I looked at the source I saw this: > > [image: source-div.png] > > So it looks to my non-technical eyes that "text" is stored in the <pre> > element, and other fields within the <div> tag. However it also seems > that all the information was retained. > > Can anyone with knowledge of TiddlyWiki internals confirm that this safe > to do, or are there instances where I could lose data? > On Friday, 14 May 2021 at 20:26:51 UTC+1 si wrote: > >> Yep this is what I had initially decided, however I have a slightly >> idiosyncratic use case which means that it will be easier for me to use >> fields. >> >> Hence why I just wanted to know if I will potentially lose any data by >> going down this route. >> On Friday, 14 May 2021 at 20:10:00 UTC+1 Mohammad wrote: >> >>> I would recommend using a JSON tiddler! >>> If you store text of tidA then you can have tidA-History to keep these! >>> >>> Best wishes >>> Mohammad >>> >>> >>> On Fri, May 14, 2021 at 11:34 PM si <[email protected]> wrote: >>> >>>> I've create a button that will move the contents of the "text" field of >>>> one tiddler into a different field ("text-history") of another tiddler. >>>> >>>> I anticipate in the future doing this with text fields that contain a >>>> lot of content, including new lines, html tables, macro definitions etc. >>>> Since fields appear on only one line I'm wondering if any formatting >>>> information could be lost during this process? >>>> >>>> I've done a test that involves new lines, and it seems that this data >>>> is retained, but I'm just wondering if there is something that I might not >>>> be anticipating, or will I always be able to transfer text back and forth >>>> without losing anything? >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "TiddlyWiki" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/tiddlywiki/96c27860-b58b-4bb6-a828-730880ed5cc6n%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/tiddlywiki/96c27860-b58b-4bb6-a828-730880ed5cc6n%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/2641e5d7-fdbc-4f20-925a-cc02847c530cn%40googlegroups.com.

