... | ... |
@@ -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 " <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 " <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 ' <b>') |
90 | 90 |
echo -n "${ref_votes[$typevote]};" >> "$result" |