> I'm pretty sure, it shouldn't. I did a short test, and can confirm the
> behaviour.
> I posted an issue.
>
> https://github.com/TiddlySpace/tiddlyspace/issues/804

This is a VERY old bug.  I reported it long ago and filed a ticket in
Trac for it.

Unfortunately, it seems the issue is the way that different browsers
handle the leading (*and* trailing) newlines in a DIV.  When the
tiddler data is read from the storeArea DIVs, some browsers eat the
leading/trailing newlines, others do not.   One fix that I had
proposed was to automatically pad the tiddler content with a leading/
trailing *space* character when writing the storeArea (i.e., file
save), and strip those spaces out when the storeArea is re-read during
document startup.

However, this solution was rejected by the folks at Osmosoft (for
reasons I cannot recall).  I *do* recall having a lengthy conference
call in which the open ticket was reviewed and subsequently closed as
"won't fix" after a great deal of heated and frustrating discussion.

Of course, the quick *manual* workaround is to simply put a leading
space character on the initial blank line of the tiddler (e.g, "space-
newline" instead of just newline).  Note that this bug also exists
when a tiddler *ends* with a newline, and is particularly ugly when
the tiddler content ends with line mode syntax that expect a trailing
newline.

For example, if a tiddler ends with:
   /***
   some wiki-formatted content here
   ***/

The trailing newline following the closing "***/" is stripped off, and
the result is that a spurious 3rd level bullet item is rendered, with
the "/" displayed as the bullet item text, rather closing the /*** ...
***/ block.  The workaround for this is similar to the workaround
above, except that you need to add a *trailing* space to the content
to prevent the final newlines from being 'eaten'.  Thus:

/***
wiki-formatted content
***/(newline)(space)


-e

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to