# HG changeset patch # User ali # Date 1369596242 -3600 # Node ID 23b81eb371a82ab76619f604d449797e7a2f4472 # Parent 5d1e411a5400e86d3bc9d54a851f3f4e7ab2d4ed Break check_for_unspaced_bracket() out diff -r 5d1e411a5400 -r 23b81eb371a8 bookloupe/bookloupe.c --- a/bookloupe/bookloupe.c Sun May 26 20:12:48 2013 +0100 +++ b/bookloupe/bookloupe.c Sun May 26 20:24:02 2013 +0100 @@ -2217,6 +2217,33 @@ } /* + * check_for_unspaced_bracket: + * + * Brackets are often unspaced, but shouldn't be surrounded by alpha. + * If so, suspect a scanno like "a]most". + */ +void check_for_unspaced_bracket(const char *aline) +{ + int i,llen; + llen=strlen(aline); + for (i=1;iendquote) {