Hi Mat

I'm on my phone and so can't check your demo properly, but I think the extra 
space is caused by (a) the fact that a block mode transclusion creates 
paragraphs and (b) the fact that the default stylesheet adds a margin above and 
below paragraphs.

In situations like this where you care about the output HTML I'd recommend 
using the browser developer tools to inspect the generated HTML. In this case 
you should be able to see the <p> tag(s) that are wrapped around the 
transcluded content.

Best wishes

Jeremy

--
Jeremy Ruston
[email protected]
http://jermolene.com

> On 18 Jun 2016, at 12:19, Mat <[email protected]> wrote:
> 
> This demo illustrates the problem; there is extra space inserted above and 
> below a transclusion (not just new row).
> 
> What is the reason for this in the transcludewidget and is it possible to 
> prevent it?
> 
> I suspect this is the same phenomenon we have with single line breaks not 
> working, but in that case it is possible to circumvent it using <br>.
> 
> Surrounding the transclusion with css does not help (other than dirty tricks 
> like "margin-top:-1em;" to manually move the block).
> 
> Attempting to peek at the codes unfortunately didn't help me - but I'm 
> thinking there ought to be some place where the CSS display property values 
> "block" and "inline" are used, considering how these are titled exactly like 
> the transcludewidget mode attribute values.
> 
> What to do? Grateful for any help. It is intended for a total rework of the 
> CherryPicker expanding the concept tremendously (see "Extending the concept").
> 
> <:-)
> 
> -- 
> 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 post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/07cc8537-0ded-4d22-bf44-512c1bc870de%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/E2E5E3FF-3C9B-47A0-B425-B00685C7B018%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to