https://bugzilla.wikimedia.org/show_bug.cgi?id=24662

--- Comment #2 from ✓ <andbe...@web.de> 2010-08-14 09:51:23 UTC ---
> if this is about color properties within the style attribute being
> interpreted as the start of an ordered list (on account of they both
> begin with "#") this is another duplicate of bug 12974.

No, its about every property. Of course it could help with the color problem if
the replace is executed before the rendering to lists, but bug 12974 is about
all functions that begin with "{{" and not only in the style attribute.

> > an regularExpression like that:
> > replace(/[\s\n\r\t]+, " "); //I'm not an expert
> 
> you mean use this: http://php.net/manual/en/function.trim.php

No, trim just does it in the beginning and end of a string. I would like to use
http://www.php.net/manual/en/function.preg-replace.php for every whitespace
_in_ the string, between style properties and their values, wihin the values
and among the diverse properties.

> exposing trim as a parser-function wouldn't be a bad idea either.

You can already use {{#if:true|  <many blanks>   }}, and the returned value
(also works with ifeq, ifexpr and switch) is automatically trimmed.

> \s by itself means all the above, just so you know.

Thanks, Im never sure. Better to much than to less...

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to