Broken abbreviation function

Issue #15 resolved
Former user created an issue

The function abbreviate in pybtex.textuils is broken.

Results does not fit what is claimed in the docstring, For example, abbreviate('Some word') yields 'S.' instead of 'S. w.'. Line 55: yield s[start:length], letter should be: yield s[start:start + length], letter

Furthermore the function as written would yield 'S. W.' instead of 'S. w.' as in the docstring.

I am using v0.16 but the current code at http://bazaar.launchpad.net/~ero-sennin/pybtex/trunk/view/head:/pybtex/textutils.py still has the bug.

Thx

Comments (3)

  1. Log in to comment