fix: keep a space between overview words that span a line break
The collapsed one-line overview on the Lidarr artist, Sonarr series, and Readarr author details views replaced every line break and tab with an empty string. Words on either side of a paragraph break fused together, rendering as "20th century.She was born in Ohio". Collapse each run of whitespace to a single space instead, and trim the result. Handling a whole run at a time keeps a Windows line ending, an indented paragraph, or a space that already precedes a line break from producing two spaces. The overview popups are unaffected: they receive the raw text and keep their paragraph breaks.
This commit is contained in:
109 files changed
+206
-158
No files matched your search
@@ -269,7 +269,7 @@ impl ReadarrData<'_> {
|
||||
overview: Some(
|
||||
"some interesting description of the author\r\n\
|
||||
\r\n\
|
||||
He was born in Madison, Wisconsin: a city he has never really left.\r\n\
|
||||
\tHe was born in Madison, Wisconsin: a city he has never really left. \r\n\
|
||||
\r\n\
|
||||
His first novel took him seven years to finish.\r\n"
|
||||
.to_owned(),
|
||||
|
||||
Reference in new issue
Block a user