Skip to content

gq formats more than selection in HTML files #303

Description

@spadgett

When I type gqit inside the first paragraph to format just the text inside the tag,

<p>
  Lorem ipsum dolor sit amet, ignota omittantur at vel. In usu nostro mollis accusamus. No pro mazim liber, invenire cotidieque nec no, pro insolens erroribus torquatos ex. In eum esse equidem phaedrum, probo praesent duo te, ei brute saepe usu.
</p>
<p>
  <a href="">Learn more</a>
</p>

This is the result I see:

<p> Lorem ipsum dolor sit amet, ignota omittantur at vel. In usu nostro mollis
  accusamus. No pro mazim liber, invenire cotidieque nec no, pro insolens
  erroribus torquatos ex. In eum esse equidem phaedrum, probo praesent duo te,
  ei brute saepe usu.  </p> <p> <a href="">Learn more</a>
</p>

This seems to be caused by a custom formatexpr, Fixedgq, which is formatting lines past where it should. I see similar results using a visual selection where gq formats past the end of the selection.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions