Skip to content

Line length formatter function for custom text outputs #7214

@ghost

Description

I'm working on a Gopher output for my Hugo blog. It'd be nice to have a function, maybe called "lineWrap" to wrap lines to a given length. This would behave similarly to fmt -w 80. It would just intelligently split lines for the text output and could be used as a filter function in themes.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions