Skip to content

Commit

Permalink
Merge pull request #177 from TylerKirby/master
Browse files Browse the repository at this point in the history
Fixed index error in Latin prosody code
  • Loading branch information
kylepjohnson committed Mar 7, 2016
2 parents c60313e + c178ac9 commit a2e6516
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cltk/prosody/latin/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,9 @@ def _scansion(self, sentence_syllables):
scanned_sent.append('¯')
else:
scanned_sent.append('˘')
del scanned_sent[-1]
scanned_sent.append('x')
if len(scanned_sent) > 1:
del scanned_sent[-1]
scanned_sent.append('x')
scanned_text.append(''.join(scanned_sent))
return scanned_text

Expand Down

0 comments on commit a2e6516

Please sign in to comment.