[Pmwiki-users] Correctness of [- -] depending on environment
Stefan Vogel
stefan.vogel
Thu Jun 17 06:52:12 CDT 2004
Hi there,
I just recognized that using the larger/smaller formatting is buggy?
Using [- ... -] results in an InlineReplacement and gets replaced
by (in wiki.php):
"'<span style=\'font-size:'.(round(pow(5/6,strlen('$1'))*100,1)).'%\'>'.str_replace('\\\"','\"','$2').'</span>'"
resp.
"'<span style=\'font-size:'.(round(pow(1.2,strlen('$1'))*100,1)).'%\'>'.str_replace('\\\"','\"','$2').'</span>'",
Therefore using "[- hello -]" yields in:
<span style='font-size:83,3%'> hello </span>
But depending on the system it get's either "83,3%" or "83.3%".
(On my local test-installation it's correctly "83.3", but on my providers
machine - whatever that is - it turns into "83,3"
Where "83,3%" is silently ignored by IE (at least version 6.0) and now smaller
formatting is done.
I would suggest letting round ignore everything after the decimal-separator
(meaning:
"'<span style=\'font-size:'.(round(pow(5/6,strlen('$1'))*100,0)).'%\'>'.str_replace('\\\"','\"','$2').'</span>'"
... notice second parameter to round)
I think that the font-size must not be that correct and so it would work
on all systems.
I'm using PmWiki 0.6.14.
What do you think?
Best regards
Stefan
P.S.: Where is the correct place to file-in such kinds of bugs?
On Sourceforge there is not much published?
--
Stefan Vogel
http://www.vogel-nest.de
More information about the pmwiki-users
mailing list