Transclusion & Formatting Issue

116 views
Skip to first unread message

@TiddlyTweeter

unread,
Mar 27, 2017, 4:14:25 PM3/27/17
to TiddlyWiki

I have a problem with formatting under transclusion ... A tiddler like this ...



... renders in a transclusion like this ... LOSING the spacing before the second list. I am not clear why this is happening. The headings are simply ''bold'' WikiText.










Jed Carty

unread,
Mar 27, 2017, 4:18:10 PM3/27/17
to TiddlyWiki
If you don't have a blank line directly above the transclusion in a tiddler it can cause the transclusion to be treated as inline.

So my guess is that you need to add a blank line above your transclusion.

Thomas Elmiger

unread,
Mar 27, 2017, 5:07:17 PM3/27/17
to TiddlyWiki
Hi, I add to the guesswork: Might be the transclusion adds a div or a span element surrounding your stuff that breaks the CSS formatting of the titles … would have to see a live example to check that.

-t

@TiddlyTweeter

unread,
Mar 27, 2017, 5:30:36 PM3/27/17
to TiddlyWiki
Ciao Jed & Thomas

Thanks for the tips.

I tried Jed's suggestion without success. Since its inside a complex transclusion I will make a test that is simpler to try to pin it down in a way where the issue gets clearer & I can document it better.

Tomorrow.

Notte, Josiah  

@TiddlyTweeter

unread,
Mar 29, 2017, 12:18:57 PM3/29/17
to TiddlyWiki
Update: Whatever is going on is not simple.

I did tests with normal text laid out in exactly the same way & it transcluded fine.

The particular issue seems to be related to the Checklist Plugin once its transcluded. It still functions, but spacing before and after it change. Because its dynamically interacting with the text (that otherwise appears normal) its not so easy to see what is going on. I leave it since its not a critical issue & I don't want to lumber you with an issue I can't describe well.

Best wishes
Josiah 
Reply all
Reply to author
Forward
0 new messages