On Nov 25, 2:06 pm, The Editor <[email protected]> wrote:
> On Tue, Nov 24, 2009 at 2:09 PM, Markus <[email protected]> wrote:
>
> > The goal should be that no if-hacks are needed like this one:
>
> > [if whatever]...[if][if whatelse]
> > here I need the line break but not that huge white space (see above)
> > when whatelse is false[if]
>
> It looks like you are getting exactly what is expected. If you put the
> line return outside the [if whatever] [if] then it will appear whether
> the condition is passed or not. If you want the line return to only
> appear when the condition is met, you need to put it inside the
> conditional. It is simply a question of seeing the actual line return.
> In your example it is **after** the closing [if].
>
> Though this issue has come up before, I think it is much more a hack,
> and even counter-intuitive to extend the conditional to a line break
> that follows or precedes the if wrappers. In other words, the if
> statement's are behaving very literally, and in my view doing exactly
> what they should be doing.

I am fine with the if statements behaving literally. Actually my
problem has nothing to do with if statements. :)

The code I use is:
! [[some.page|[^some_pic.png^]]][[some.page|Some title]]
[if* equal {member} Markus]$$actions[if*]

Consider being logged out. Then the second line is just an empty one.
So we get:

! Heading
*empty line*

And that empty line produces this code:

<div class='vspace'> </div>
<br />

Is this really what you expect? I understand that the empty line is
not treated as a paragraph because there is no line break to end it.
So far, so good. But if there is not even a paragraph why is there
vertical space plus a line break?

In this case, I only expected the heading without any white space
beneath.

If you end a paragraph by an empty line, you won't get vspace and a br
inserted I guess (and hope). The same should go for headings and
similar stuff.

Regards, Markus

>
> Cheers,
> Dan

--

You received this message because you are subscribed to the Google Groups 
"BoltWire" 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/boltwire?hl=en.


Reply via email to