Skip to content

Allow customization of wrapping controls. #25

@kentfredric

Description

@kentfredric

Until now I've abused the fact wrapping is implemented in terms of Text::Wrap, and coerced Text::Wrap to have some less insane defaults.

Some of those are outlined here: https://rt.cpan.org/Ticket/Display.html?id=95736

$Text::Wrap::break='[\x09\x20]';
$Text::Wrap::huge='overflow';

And both of those are important because the first prevents unicode NONBREAK-SPACE (0xA0) from being wrapped on, and the second prevents long tokens ( like URI's ) from being uselessly snapped in two.

The last one I do personally is localise

$Text::Wrap::columns = 120

Because under 80 columns I find far too restrictive for any serious amount of text.

And this ability has been clobbered by 087f3b7 , where it localises it at a scope closer than I can access.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions