plint

French poetry validator (local mirror of https://gitlab.com/a3nm/plint)
git clone https://a3nm.net/git/plint/
Log | Files | Refs | README

commit 9bcdcf287d98ad27121b65672de0adaaec23a36c
parent 353497dd0c4b7ebee68c9c81134034d2a5564272
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Fri, 27 Apr 2012 19:41:35 +0200

whitespace

Diffstat:
metric.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/metric.py b/metric.py @@ -45,7 +45,7 @@ def fit(chunks, pos, left): else: weights = possible_weights(chunks[pos]) else: - if (pos >= len(chunks) - 1 and chunks[pos] == 'e' and + if (pos >= len(chunks) - 1 and chunks[pos] == 'e' and pos > 0 and (chunks[pos-1].endswith('-c') or chunks[pos-1].endswith('-j'))): weights = [0] # -ce and -je are elided