Skip to content

IndexError #20

Description

@pmantyla

The snippet below results in an IndexError. It seems to have trouble wrapping the last word: "ch'entrate".

from hyphen.textwrap2 import TextWrapper
import hyphen

h_en = hyphen.Hyphenator('en_US')
wrapper = TextWrapper(width=70, use_hyphenator=h_en)
print(wrapper.fill("Abandon all hope, you who enter here (Lasciate ogni speranza, voi ch'entrate)."))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions