Commit bfe7333e authored by Simon Will's avatar Simon Will
Browse files

Fix counting bug in get_syllables

parent 1a482a09
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -200,8 +200,8 @@ def get_syllables_for_token(token: Token):
                    syllables.append(syll)

                    # Begin info for new syllable.
                    syll_start = syll_start + len(syll_text)
                    syll_text = c.rstrip('_^')
                    syll_start = syll_start + len(syll_text) + 1
                else:
                    # Syllable has no vowel yet.
                    syll_text += c.rstrip('_^')