Skip to content

Paragraph text is truncated after a link followed by a stop (.) #88

@e-serranor

Description

@e-serranor

Description

a tags followed by a dot character cause the text following the dot to be omitted from the result.

Cases

Working as expected:
Consider this input:

<p>
The quick brown fox <a href="#">jumps</a> over the lazy dog.
</p>

The output is, as expected:

%p
  The quick brown fox
  %a{:href => "#"} jumps
  over the lazy dog.

Bug:
But if a dot follows the a element, as in the following input:

<p>
The quick brown fox <a href="#">jumps</a>. Over the lazy dog.
</p>

The output is missing everything after the dot:

%p
  The quick brown fox
  = succeed "." do
    %a{:href => "#"} jumps

Additional information

html2haml --version
html2haml 2.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions