Skip to content

Incorrect line wrapping when line has brackets #156

@sergetymo

Description

@sergetymo

I used to mark inline links with numbers in square brackets, using actual link's sequential number like Amfora itself does. It appears that Amfora incorrectly wraps the kind of lines which contain more than one pair of such link notation, exactly before the word that ends on second pair of brackets.

You can notice such behaviour around words wraps[2] and newsletter[5] on the screenshot, as well as on the test page gemini://s.tymo.name/amfora-wrapping-test.gmi.

Screenshot 2020-12-24 at 01 12 14

Related config entries:

[a-general]
left_margin = 0.1
max_width = 100

Details:
Affected versions: v1.6.0 and v1.7.1
OS: macOS Catalina 10.15.7
Terminals: alacritty v0.5.0, iTerm2 Build 3.4.3, Terminal.app
Fonts and screen sizes: any, changing those doesn't affect the result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstreamThe issue is with a library.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions