Skip to content

Misaligned large indices #18

Closed
Closed
@wooorm

Description

@wooorm

Initial checklist

Problem

Indices longer that 9 break the alignment

RootNode[1] (1:1-1:49, 0-48)
└─0 ParagraphNode[1] (1:1-1:49, 0-48)
    └─0 SentenceNode[23] (1:1-1:49, 0-48)
        ├─0 WordNode[1] (1:1-1:2, 0-1)
        │   │ data: {"partOfSpeech":"PRP"}
        │   └─0 TextNode "I" (1:1-1:2, 0-1)
        ...
        ├─11 WordNode[1] (1:22-1:24, 21-23)
        │   │ data: {"partOfSpeech":"TO"}
        │   └─0 TextNode "to" (1:22-1:24, 21-23)

Note the alignment of | before data, textnode.

Solution

  • Align contents
  • Optionally pad all indices lower than 10.

Alternatives

fine as is?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions