Changeset 88715 in spip-zone


Ignore:
Timestamp:
Apr 22, 2015, 1:12:48 AM (4 years ago)
Author:
patfr@…
Message:

Insertion des points dans une phrase (QCM) : tenir compte d'un espace insécable

Location:
_plugins_/jeux/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/jeux/trunk/jeux/qcm.php

    r65527 r88715  
    151151        if (!jeux_config('points') || $veto || $points===false) return $phrase;
    152152    $pointsHTML = '<span class="jeux_points"> ('.$points. _T('jeux:point'.(abs($points)>1?'s':'')).')</span>';
    153         if (preg_match(',( ?: *)$,', $phrase, $regs))
     153        if (preg_match(',((?:\xc2\xa0| )?: *)$,', $phrase, $regs))
    154154                $phrase = substr_replace($phrase, $pointsHTML, strlen($phrase)-strlen($regs[1]), 0);
    155155          else $phrase .= $pointsHTML;
  • _plugins_/jeux/trunk/paquet.xml

    r86903 r88715  
    22        prefix="jeux"
    33        categorie="divers"
    4         version="3.3.1"
     4        version="3.3.2"
    55        etat="test"
    66        compatibilite="[3.0.0;3.1.*]"
Note: See TracChangeset for help on using the changeset viewer.