diff options
| -rw-r--r-- | BibTeX.py | 22 |
1 files changed, 0 insertions, 22 deletions
@@ -225,28 +225,6 @@ def sortEntriesByDate(entries): -def _split(s,w=79,indent=8): - r = [] - s = re.sub(r"\s+", " ", s) - first = 1 - indentation = "" - while len(s) > w: - for i in xrange(w-1, 20, -1): - if s[i] == ' ': - r.append(indentation+s[:i]) - s = s[i+1:] - break - else: - r.append(indentation+s.strip()) - s = "" - if first: - first = 0 - w -= indent - indentation = " "*indent - if (s): - r.append(indentation+s) - r.append("") - return "\n".join(r) class FileIter: def __init__(self, fname=None, file=None, it=None, string=None): |
