Skip to content

Enable align by default #10

@grahamcracker1234

Description

@grahamcracker1234

Should we align by default?

When using dedent, I cannot think of any practical examples where someone would not want the align behavior. Maybe, it should be that we required the use of align=False or the noalign directive if for some reason somebody does not want the this behavior.

It would make the differentiation from textwrap.dedent a tad easier to explain and justify it's worth/improvement.

Before making a decision, I would probably want more feedback on this.


Once #4 is complete and older versions of Python are supported, it is not clear to me if this is even globally possible across versions. Regardless, I still think there is good motivation to have align enabled by default when a Template argument is given, over a str/LiteralString.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-feedbackAwaiting feedback, review, or direction from maintainers or communitystatus:explorationEarly-stage work: exploring approach, feasibility, or design.type:enhancementImproves existing functionality without adding a fundamentally new capability

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions