This patch improves word wrapping for the description text in book details by justifying the text block and allowing for words to be wrapped by automatically inserting hyphens if necessary.
This causes the description box to look far less ragged on the right edge which I think helps the overall cleanliness of the look.
Unfortunately the app's/browser's aren't as good as e.g. the TeX algorithm for hyphening and there are JavaScript libraries which seem to reimplement that. But this is already a significant step up and far less work for something which is not the main focus of this app.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/advplyr/audiobookshelf-app/pull/572
**Author:** [@lkiesow](https://github.com/lkiesow)
**Created:** 2/10/2023
**Status:** ✅ Merged
**Merged:** 2/11/2023
**Merged by:** [@advplyr](https://github.com/advplyr)
**Base:** `master` ← **Head:** `hyphen-auto`
---
### 📝 Commits (1)
- [`a185c3a`](https://github.com/advplyr/audiobookshelf-app/commit/a185c3abe92f0e12d86f8ea661dce529f0c29f8a) Improve word wrapping
### 📊 Changes
**1 file changed** (+1 additions, -1 deletions)
<details>
<summary>View changed files</summary>
📝 `pages/item/_id/index.vue` (+1 -1)
</details>
### 📄 Description
This patch improves word wrapping for the description text in book details by justifying the text block and allowing for words to be wrapped by automatically inserting hyphens if necessary.
This causes the description box to look far less ragged on the right edge which I think helps the overall cleanliness of the look.
Unfortunately the app's/browser's aren't as good as e.g. the TeX algorithm for hyphening and there are JavaScript libraries which seem to reimplement that. But this is already a significant step up and far less work for something which is not the main focus of this app.

---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/advplyr/audiobookshelf-app/pull/572
Author: @lkiesow
Created: 2/10/2023
Status: ✅ Merged
Merged: 2/11/2023
Merged by: @advplyr
Base:
master← Head:hyphen-auto📝 Commits (1)
a185c3aImprove word wrapping📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
pages/item/_id/index.vue(+1 -1)📄 Description
This patch improves word wrapping for the description text in book details by justifying the text block and allowing for words to be wrapped by automatically inserting hyphens if necessary.
This causes the description box to look far less ragged on the right edge which I think helps the overall cleanliness of the look.
Unfortunately the app's/browser's aren't as good as e.g. the TeX algorithm for hyphening and there are JavaScript libraries which seem to reimplement that. But this is already a significant step up and far less work for something which is not the main focus of this app.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.