Skip to content

Fix combineSpans #61

@jmatsushita

Description

@jmatsushita
> combineSpans [Span (Range (Coord 0 0) (Coord 0 2)) "a", Span (Range (Coord 0 1) (Coord 0 1)) "b"]
[((Coord (row 0) (col 0)),"a"),((Coord (row 0) (col 1)),"ab"),((Coord (row 0) (col 1)),"a"),((Coord (row 0) (col 2)),"")]

Representing this in ASCII

“aaa”
“ b ”
—— currently combines to
  b
  a
“aa.“

Where vertical stacking is mappend and . is mempty

Where we would expect:

“aaa”
“ b ”
—— combines to
  b
“aaa“

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