Skip to content

Last line should be justified when text is justified #3

@mentonin

Description

@mentonin

When text is justified, the expected behaviour of balance is to make all lines be the same width, with the least amount of extra spacing. Right now, the last line can be shorter than the others.

The current workaround is to use balance[some text#linebreak(justify: true)]

Commit d1769d1 accomplished this when the content to be balanced is simple text, but broke things (and didn't fix the problem) when balancing arbitrary content, so commit c216c0 reverted these changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions