[pmwiki-users] (:noteblock:) problem

Sebastian Siedentopf schlaefer at macnews.de
Wed Apr 13 03:13:02 CDT 2005




Am 13.04.2005 7:34 Uhr schrieb "Patrick R. Michaud" unter
<pmichaud at pobox.com>:

> The HTML being produced by (:noteblock:) on your site is
> badly broken with incorrectly placed <p> and </p> tags, and
> that's probably what is causing IE so much trouble. ...

> I looked briefly at the (:noteblock:) code but it looks a bit
> too involved for me to debug at the moment.  I suspect a well-placed
> call to Keep(...) might resolve the problem.


The table generated by something like this:

Markup('note','directives','/\(:note\s(.*?):\)/e', "notefct('$1')");
  
function notefct($Message){
 $a="some <multiline wiki markup> text"
 $b="some <multiline wiki markup> text"
 
 $out= "<table class='x'><tr><td  class='y'>".$a."</td></tr><tr><td
>".$b.</td></tr></table>";
 
 return $out;
}

should not be placed into <p> </p> tags.

I'm aware of the Keep() function but I have to admit, i haven't examined
what Keep() is really doing and how it works, so it is probably my fault.
Maybe there is a simple Keep() solution.  I will look after it.

Sebastian





More information about the pmwiki-users mailing list