[wikiss-users] Bug FS#16 - Mauvaise interprétation des cellules avec un chiffre

[ Thread Index | Date Index | More lists.tuxfamily.org/wikiss-users Archives ]


Bonjour a tous ...

je suis Javi et je suis from l'espagne (barcelona). J'ai començe
utiliser Wikiss et je veux de participer dans ce liste

je m'excuse parce que je ne parle rien français, et on avance j'ecrire
anglais :)

surely I have not made a single sentence right, hope you all understand
me ... ;)

now that I've been introduced, I'd like to 'fix' a bug on the tables
plugin.

I made it mandatory to add the ',' character if you want to set
colspan/rowspan, so instead of doing it:

| 2 two columns |
you have to write it like this:

| 2, two columns |

that's the code i've changed:

      $s=preg_replace('/\|(h){0,1}(([lrtb]* ){0,1})\s*(\d*)\s*,{0,1}(\d*)\s*(.*?)\|/e',
         '"<t".("$1"?"h":"d").("$4"?" colspan=\"$4\"":" ").("$5"?" rowspan=\"$5\"":" ").$this->table_style("$2").">$6</t".("$1"?"h":"d").">"',$s);       

to

      $s=preg_replace('/\|(h){0,1}(([lrtb]* ){0,1})(\s*(\d*)\s*,(\d*)\s*){0,1}(.*?)\|/e',
         '"<t".("$1"?"h":"d").("$5"?" colspan=\"$5\"":" ").("$6"?" rowspan=\"$6\"":" ").$this->table_style("$2").">$7</t".("$1"?"h":"d").">"',$s);

by the way, I've translated to spanish the help pages for wikiss and the tables plugin, so if anyone wants them just ask for them ;)

-- 
Javi Polo - DrSlump - Registered Linux User #87882 http://drslump.org/
Proud member of the Gey Panda Crew
:x

---
http://wikiss.tuxfamily.org


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/