[pmwiki-users] (:linebreaks:) oddness

marc gmane at auxbuss.com
Wed May 9 09:50:14 CDT 2007


Hi,

Pages with (:linebreaks:) are causing <br  /> to be inserted in a 
sidebar area included via:

  (:if ! authid :)(:include Site.AuxLogin :)

Here's the genertated HTML without the (:linebreaks:) markup

  <p><legend class='legend' >Customer login
  </legend>
  <label for='authid' class='label' >User name
  </label><br /><input type='text' name='authid' class='text' /><br />
  <label for='authpw' class='label' >Password
  </label><br /><input type='password' name='authpw' class='text' />
  <br /><input type='submit' value='Login' class='button' />
  </p>

and here's it with

  <p><legend class='legend' >Customer login
  <br  /></legend>
  <br  /><label for='authid' class='label' >User name
  <br  /></label><br /><input type='text' name='authid' class='text' />
<br />
  <br  /><label for='authpw' class='label' >Password
  <br  /></label><br /><input type='password' name='authpw' 
class='text' />
  <br /><input type='submit' value='Login' class='button' />
  </p>

I can fix this by finishing the page with (:nolinebreaks:), but it still 
leaves a hole. I guess I could put (:nolinebreaks:) at the top of 
Site.AuxLogin, but that's a kludge.

Shouldn't the behaviour be limited to the page? Is there a fix?

(I'm currently using pmwiki-2.2.0-beta44)

-- 
Cheers,
Marc




More information about the pmwiki-users mailing list