Skip to content
This repository was archived by the owner on Mar 6, 2019. It is now read-only.
This repository was archived by the owner on Mar 6, 2019. It is now read-only.

Quoted text causes highlighting to become greedy #14

@su

Description

@su

If you click to select a sentence that contains a quote, and that quote terminates the sentence, the highlighting process doesn't stop until it hits the end of a following "plain" sentence.

This case doesn't exist in the demo document, so we have to construct it.

Steps:

  • Take the current first paragraph ("The morning after…") and tack it onto the end of the second ("We are not so unlucky"…), combining them into a new single paragraph.
  • Activate Emphasis.
  • Select the new first paragraph.
  • Select the second sentence, beginning "When I remember…"
  • The highlight will blow past the quote ending that sentence, including the next one in the highlight, at which point it stops:

highlight-1

If we happen to have consecutive terminal quotes, the process repeats until a "plain" sentence is reached. Rearranging the demo document again:

highlight-2

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