01404: "pct" dropped from CSS classnames

Summary: "pct" dropped from CSS classnames
Created: 2017-04-05 09:53
Status: Closed, fixed for 2.2.98
Category: Bug
From: Sven
Assigned:
Priority: 3
Version: unknown
OS: unknown

Description:

Here on pmwiki.org in the sandbox and PITS, all the "pct" are dropped from CSS class names in this example:

markup:%r-25pct g-50pct b-75pct%test%%
rendered:test
HTML:<span class="r-25 g-50 b-75">test</span>

Sven April 05, 2017, at 10:00 AM

Thanks for the report, indeed this is a bug. PmWiki allows you to enter percents into the %wikistyle...% markups if you use "pct" in place of the "%" percent sign. You cannot use the real percent sign as it serves for delimiting the markup. I'll see if this can be fixed without breaking the current rule. --Petko April 07, 2017, at 04:43 PM

I've fixed this, to be released with the next version. If you want to get it earlier, see Subversion where you can download the pre-release as a zip archive or via SVN. Only the scripts/wikistyles.php file changed. --Petko April 07, 2017, at 05:29 PM