[pmwiki-users] New Recipe: IntuitiveSpacing
Hans
design5 at softflow.co.uk
Thu Mar 15 14:10:44 CDT 2007
Thursday, March 15, 2007, 5:56:04 PM, Patrick wrote:
> I've also enabled the recipe on the Cookbook/LiteralWhiteSpace
> page on pmwiki.org. (Note that there seems to be an issue
> handling Site.PageActions when the recipe is included.)
> Also, the recipe sets
> $RecipeInfo['IntuitiveSpacing'] = '2007-03-15';
> In order for RecipeCheck to work, this needs to be
> $RecipeInfo['IntuitiveSpacing']['Version'] = '2007-03-15';
Thank you! But it seems this script is not ready for release yet.
There are two issues when using the pmwiki skin:
1. wrapping of code is not working.
I don't know if you set $EnableWrapCode = 1; for the page
Cookbook/LiteralWhiteSpace. If not could you do this please?
I mended the HTMLStylesFmt for prewrap in the script to read:
$HTMLStylesFmt['prewrap'] = "
pre.escaped, code.escaped {
I needed to add the class 'escaped' to pre and code, in order to
override the pmwiki core setting.
2. Site.PageActions content has a number of extra spaces, which the
recipe script eagerly converts to , thereby
a) messing up the style markup,
b) making it into a very long line.
Taking out the extra spaces fixed the problem.
I uploaded an update of whitespace.php
Could you please reinstall it, including setting
$EnableCodeWrap = 1;
I will change Site.PageActions, and put on the recipe page some
Sandbox text.
Thanks!
Hans
More information about the pmwiki-users
mailing list