On Thu, Feb 19, 2009 at 2:37 PM, Hans <[email protected]> wrote:
>
> It seems that conditional markup is creating additional vertical
> space, i.e. <br /> tags.
>
> Example page:
>
> [if ! login]* [[{p}&action=login|login]]
> * [[action.register|register]][else]
> * [[?{p}&action=view|view]]
> * [[action.create|create]]
>
> If the page is included a <br /> tag appears before the <ul>
> Without the [if ! login] no <br /> tag is added.
The conditionals do not insert any space, but you will have a line
return if logged in because there is a line return after the [else]
markup. Does this work?
[if ! login]* [[{p}&action=login|login]]
* [[action.register|register]]
[else]* [[?{p}&action=view|view]]
* [[action.create|create]]
> Second example:
>
> [if ! login]* [[{p}&action=login|login]]
> * [[action.register|register]][else]
> * [[?{p}&action=view|view]]
> * [[action.create|create]] [if]
> [if auth write check={p} && login]
> * [[{p}&action=edit|edit]]
> * [[{p}&action=copy|copy]]
>
> Again, the [if auth write check={p} && login] creates an additional <br /> tag
Save problem here. Try this
[if ! login]* [[{p}&action=login|login]]
* [[action.register|register]]
[else]* [[?{p}&action=view|view]]
* [[action.create|create]]
[if][if auth write check={p} && login]* [[{p}&action=edit|edit]]
* [[{p}&action=copy|copy]]
[if]
The conditionals are very literal and add or remove absolutely
nothing. The problem is more that BoltWire has automatic line breaks
similar to your literal white space recipe. This is one of the issues
I'll be looking into more fully before we go to 3.xx...
> Can conditional markup not avoid these extra line spaces?
>
> (I am playing around trying to transfer one of my skins to BW, but
> this bug throws the action menu)
Looking forward to seeing what you come up with. If you need a
skin.php file, I can add a hook for that. There hasn't yet really been
a need, but once we start developing more complex skins, this will be
a must. It won't be hard--probably just adding one line. I may go
ahead and work something into the next release.
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
-~----------~----~----~----~------~----~------~--~---