[pmwiki-users] Bug report: Wiki 'define' sometimes not honored and 'color' is case sensitive

Crisp, Steve [UK] SCRISP at ngms.eu.com
Thu May 11 16:10:06 CDT 2006


All,
 
Not sure if anyone has caught the following issues yet with wiki 'define' markup.
 
Summary:
========
1. 'define' not honored if it is the first item in page
2. 'color' defines are case sensitive
 
Detail:
=======
1. Wiki does not honor a %define% if it is the first thing in a page.

Group header:
--------------------
(:include Site.GroupHeader:)
%define=ngnote block bgcolor=#FFFFCC border='1px solid blue' padding=5px
margin-left=5pc margin-right=5pc %
%define=ngwarn block bgcolor=#FFFFCC border='1px solid red' padding=5px
margin-left=5pc margin-right=5pc %
%define=ngcrit block bgcolor=#FFFFCC border='1px solid red' padding=5px
margin-left=5pc margin-right=5pc color=red %
%define=ngmesg block bgcolor=#CCCCCC padding=5px font-family=monospace %
%define=trail bgcolor=#EEEEEE block%
--------------------

Pages found not to render %ngcrit% as first item:
--------------------
%ngcrit% '''Important:''' Blah...
--------------------

--------------------
(:comment do not remove:)
%ngcrit% '''Important:''' Blah...
--------------------

Page that *does* render %ngcrit% as first item:
--------------------
(:comment do not remove:)

%ngcrit% '''Important:''' Blah...
--------------------
Note the blank line.  Without the comment wiki will strip leading
whitespace.

If the 'GroupHeader' ends with a double new line or a blank line, then
initial defines work:

Group header:
--------------------
(:include Site.GroupHeader:)
%define=ngnote block bgcolor=#FFFFCC border='1px solid blue' padding=5px
margin-left=5pc margin-right=5pc %
%define=ngwarn block bgcolor=#FFFFCC border='1px solid red' padding=5px
margin-left=5pc margin-right=5pc %
%define=ngcrit block bgcolor=#FFFFCC border='1px solid red' padding=5px
margin-left=5pc margin-right=5pc color=red %
%define=ngmesg block bgcolor=#CCCCCC padding=5px font-family=monospace %
%define=trail bgcolor=#EEEEEE block%<cr>
<cr>
--------------------

This is also true for GroupFooters; if the end of the page does not
contain a separate blank line then the %trail% in the group footer is
not formatted (it is appended tothe last line of the page).

2. NOTE ON COLOURS IN DEFINES

The %ngcrit% *will* render the correct font colour (red) when it is
given by name rather than number.

Sometimes numeric color definitions are case sensitive: '#abceabce' does
not work, whereas '#ABCDABCD' does.

Let me know if you need any clarification in addition to the examples aboves.
-Steve.
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20060511/d097e823/attachment.html 


More information about the pmwiki-users mailing list