Showing 1 changed files with 1 additions and 1 deletions
+1 -1
analyse-votes-AN
... ...
@@ -84,7 +84,7 @@ for scrutin in $(seq $last); do
84 84
 
85 85
     unset cible_votes[*] ref_votes[*]
86 86
     for typevote in $typevotes; do
87
-        cible_votes[$typevote]=$(sed -rn "${groupes[$groupe]}p" $tempfile | sed -rn '/<p class="typevote">'${typevote}':/,/<.div>/p' | sed 's,</li>,\n,g' | grep -ic "&nbsp;<b>${nom}</b>")
87
+        cible_votes[$typevote]=$(sed -rn "${groupes[$groupe]}p" $tempfile | sed -rn '/<p class="typevote">'${typevote}':/,/<.div>/p' | sed 's,</li>,\n,g' | grep -ic "&nbsp;<b>${nom:+${nom}</br>}")
88 88
         echo -n "${cible_votes[$typevote]};" >> "$result"
89 89
         ref_votes[$typevote]=$(sed -rn  "${groupes[$groupe_ref]}p"  $tempfile | sed -rn '/<p class="typevote">'${typevote}':/,/<.div>/p' | sed 's,</li>,\n,g' | grep -c '&nbsp;<b>')
90 90
         echo -n "${ref_votes[$typevote]};" >> "$result"