Skip to content

Needless extra whitespace before punctuation marks in highlights #405

@randomnoise

Description

@randomnoise

Sometimes when I highlight some text in documents and later check it on the "Annotations" page, there seems to be an unnecessary extra whitespace before punctuation marks.

I think I observed this only for .epub files and not for all highlights, but I am not 100% sure.

Also, I couldn't reproduce this bug in the emulator.

Screenshots

Image Image

Corresponding file in .reading-states directory:

{
  "opened": "2025-07-13 20:00:38",
  "currentPage": 4413,
  "pagesCount": 474661,
  "finished": false,
  "dithered": false,
  "rotation": 0,
  "annotations": [
    {
      "text": "girl , and passed a considerable time in Scotland . I made occasional visits to the more picturesque parts ; but my habitual residence was on the blank and dreary northern shores of the Tay , near Dundee . Blank and dreary on retrospection I call them ; they were not so to me then . They were the eyry of freedom , and the pleasant region where unheeded I could commune with the creatures of my fancy . I wrote then — but",
      "selection": [
        5168,
        5578
      ],
      "modified": "2025-07-13 20:01:22"
    }]}

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