Skip to content

Next up! Line wrapping! #21

@dgkf

Description

@dgkf

I've been pleased with the introduction of the block class. I think the next step is to introduce line wrapping.

I'm torn between two different ways of approaching this.

While walking sub-tags, we keep track of the remaining space on the current line so that newlines can be inserted without knowledge of the parent tag. In this style, each child expression will be formed properly so that they can all be joined together in the parent tag.

or

We can split elements that can be wrapped into individual wrap-able words, more like a flat-map that generates individual wrapable components.

For now, my plan is to just try out a few of these to see if one fits particularly better than the other. Interested if anyone has any thoughts to steer this, though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions