Skip to content

Repeated hyphen at end of line #1

@PhilterPaper

Description

@PhilterPaper

I can see in examples/KP.pl (paragraph-shaping example) that one place where a compound word was split at a hard hyphen (ASCII x2D) results in a new hyphen being added, giving a double hyphen -- at the end of the line. I haven't yet tracked down whether this is a problem in Text::KnuthPlass, or something that should be handled in the calling code (KP.pl).

A similar issue will probably arise with soft hyphens, non-breaking hyphens, narrow-hyphens, and various dashes (en-, em-, fig-). I would like to take care of all of them together, in a consistent manner, rather than chasing them down one at a time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions