Inline textflow disappears unless preceded by pilcrow

I’m trying to create an inline textflow with a floating Exhibeo slideshow. I’d like the text to line up with the top of the slideshow, but every time I preview in Freeway or browser(Safari, Chrome, Firefox, Opera) all text following the floating Exhibeo action disappears until the next inline pilcrow. But of course, adding a pilcrow at the beginning makes the text begin a line down from the top.

Any ideas?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Ben, I’ve tried to replicate the issue as you describe, but with mixed success. So, maybe I’ve not understood how you’ve set this up… I tried an experiment and this is what I’ve found.

First, I can say unequivocally, that if I insert the exhibeo import action on a line, and then insert text on the next line, both render exactly as I would expect. Every time.

However, if I float the inserted box created by the action, the text which follows it does disappear, unless preceded by a hard-return ( the so-called pilcrow ).

The extra hard-return indeed will also make the surrounding text appear lower than the top of the floated Slide gallery. The reason for this is that Freeway treats first and last paragraphs of text differently than the rest-- removing margin space from the tops and bottoms so they visually fit their containers better. Since there is now a hard-return before the text, technically, Freeway does not see it as a “first” paragraph anymore and adds margin space above it.

##This is the part where I trick Freeway into thinking this text is still a first paragraph, and I did it using Freeway’s own CSS styles.

The style that Freeway automatically applies to first paragraphs is .f-fp – it’s easy to spot in your user stylesheet…

  .f-fp { margin-top: 0px; }

But since it is automatically handled by Freeway at publishing time, there isn’t a manual way to apply it in the workspace. Or is there?

Immediately I thought of a half-dozen clever ways to do this, then went straight for the least clever one… which is usually the easiest.

I made a new user style with only the paragraph attribute of margin-top ( space-before in Freeway :stuck_out_tongue: ) and named it f-fp then applied it to my text. Simple enough.

Now I thought for sure that I would be breaking some inviolable law of nature… after all, I was essentially duplicating something that Freeway reserves for itself. I expected alarms and ominous warnings, and perhaps an explosion or two… but Freeway simply wrote it as another instance in the user stylesheet of a style it had already automatically written there previously. I could scarcely believe it.

The published result also behaves as expected, with my text wrapping the Exhibeo Slide as if it were a first paragraph again.

http://cssway.thebigerns.com/examples/exhibeo-slide-basics/inlinesample.html

To be fair, I could have named the style e-fp ( or nearly anything else ) and come to the same end… but the f-fp style already exists and it seems so wasteful to make new styles to do the work of existing ones. This way I learned a new method for controlling Freeway and modify it’s behavior to do exactly as I will it to.

So Ben, I don’t know if all this helps you-- it’s my best guess with the limited bit of information you’ve dropped here. Hopefully I guessed right.

Best,


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

That’s great! That was exactly my issue and your fix works beautifully. Thanks!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options