[pmwiki-users] 'sourceblock' cookbook showing '<:vspace>'

Patrick R. Michaud pmichaud at pobox.com
Fri Sep 2 15:06:18 CDT 2005

On Fri, Sep 02, 2005 at 09:57:11PM +0200, Christophe David wrote:
> The excellent 'sourceblock' cookbook does not handle a very recent change
> : all blank lines in the code show as '<:vspace>', as can be seen on the
> cookbook page http://www.pmwiki.org/wiki/Cookbook/SourceBlock .
> Did someone already find what has to be adapted to have the code showing
> properly with 2.0.0 ?

Now fixed in the cookbook -- download and install the most recent
version and it should work.


For those who are interested, the general fix is to change things like

    # undo PmWiki's htmlspecialchars conversion
    $source = str_replace(
                  array('&lt;', '&gt;', '&amp;'),
                  array('<', '>', '&'), $source);

    # undo PmWiki's htmlspecialchars conversion
    $source = str_replace(
                  array('<:vspace>', '&lt;', '&gt;', '&amp;'),
                  array('', '<', '>', '&'), $source);

so that any <:vspace> items inserted into the markup are removed 
along with the other htmlspecialchars conversions that PmWiki


More information about the pmwiki-users mailing list