Skip to content
This repository was archived by the owner on Mar 30, 2023. It is now read-only.

Implement an option to wrap only modified paragraphs #100

@JulienPalard

Description

@JulienPalard

As msgcat now have two distinct wrapping depending on the version of gettext, powrap can no longer enforce a "common True wrapping".

Trying to enforce a common True wrapping in this condition looks wrong, but users could still have to use powrap (users of emacs po-mode that does not wrap at all need a tool to wrap, so at least me.).

But if a repo (like python-docs-fr) have no "common True wrapping" and I edit a typo on a file and I powrap the file, I may rewrap the whole file, leading to an unacceptable diff for a typo.

So maybe powrap can have an option to rewrap only paragraphs that were edited AND need rewrapping, just to minimize diffs.

See python/python-docs-fr#1825 for context.

Also while there no longer a "common True wrapping", there no longer a real need to use msgcat, we may fall back to textwrap for portability?

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