[Bug]: Surrounding whitespace is included when editing chapter names #800

Closed
opened 2026-04-24 23:22:00 +02:00 by adam · 1 comment
Owner

Originally created by @Weldawadyathink on GitHub (Dec 5, 2022).

Describe the issue

When editing chapter names, if there is whitespace included before or after the chapter name, it is not removed. The whitespace should be removed.

Steps to reproduce the issue

  1. Open a book
  2. Edit Chapters
  3. Include whitespace in the chapter
  4. Save
  5. Edit again, to confirm whitespace is still present

Audiobookshelf version

v2.2.8

How are you running audiobookshelf?

Docker

Originally created by @Weldawadyathink on GitHub (Dec 5, 2022). ### Describe the issue When editing chapter names, if there is whitespace included before or after the chapter name, it is not removed. The whitespace should be removed. ### Steps to reproduce the issue 1. Open a book 2. Edit Chapters 3. Include whitespace in the chapter 4. Save 5. Edit again, to confirm whitespace is still present ### Audiobookshelf version v2.2.8 ### How are you running audiobookshelf? Docker
adam added the bug label 2026-04-24 23:22:00 +02:00
adam closed this issue 2026-04-24 23:22:01 +02:00
Author
Owner

@advplyr commented on GitHub (Dec 18, 2022):

Updated in v2.2.9

@advplyr commented on GitHub (Dec 18, 2022): Updated in [v2.2.9](https://github.com/advplyr/audiobookshelf/releases/tag/v2.2.9)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#800