Skip to content

HtmlInline (and possibly other inlines) incorrect end line calculation #501

Open
@SamWilsn

Description

It seems like the sourcepos calculation for inlines (at least for HtmlInline) adds self.line_offset to the end column, instead of the line offset for the end line.

For example:

  hello <img
    src="foo"
    alt="bar"> world

Gives a sourcepos of 1:9-3:9, while:

  hello <img
    src="foo"
                              alt="bar"> world

Also gives a sourcepos of 1:9-3:9.

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions