[pmwiki-users] Trouble understanding formatting

Jan Erik Moström lists at mostrom.pp.se
Tue Feb 12 09:28:51 CST 2008

I've asked about this before but I don't get it so I need to ask 
again. I'm writing my own skin and I don't understand the logic.

If write some text like this
Bla bla bla bla


bla bla bla bla

which gets rendered as

<p class='vspace'>Bla bla bla bla</p>
<div class='vspace'></div>
alt='' title='' /></div>
<p class='vspace'>bla bla bla bla</p>

note that the image is "symetric" in the source, ie an empty 
line before and after. My expectations was that this symmetry 
would be reflected in the output, that is that there would be 
"<div class='vspace'></div>" both before and after the image 
line (note: that I have the same "issue" with lists etc, this 
was just the shortest exampel).

It was explained to me that an empty div-vspace would be joined 
with the following paragraph. What I have difficulty in 
understanding is why a similar rule isn't applied before the image.

If would be grateful if someone could explain this in more detail.

Note: I'm not complaining, I'm just trying to understand so I 
can design my template.

Jan Erik Moström, www.mostrom.pp.se

More information about the pmwiki-users mailing list