![]() |
#1 |
Connoisseur
![]() Posts: 76
Karma: 10
Join Date: Feb 2022
Device: None
|
How to remove "line breaks" from text between tags?
I recently opened an e-book where the text (between paragraph tags) does not go all the way across the page but breaks part way across. This obviously does not affect the appearance in the e-book viewer, but is there a way to easily "beautify" the edit window to remove these "line-breaks" and make the text-lines go all the way across?
|
![]() |
![]() |
![]() |
#2 |
Connoisseur
![]() Posts: 76
Karma: 10
Join Date: Feb 2022
Device: None
|
There is an easy way to correct this on Linux. Copy and paste the text from Calibre E-Book Editor to the XED text editor. Select All, then select "View > Join Lines (Ctrl J)". Then copy and paste back into Calibre.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Use find and replace in reges mode with
\n as find and empty replace. |
![]() |
![]() |
![]() |
#4 | |
Morlock
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34
Karma: 2734796
Join Date: Oct 2021
Device: Kindle Paperwhite
|
Quote:
[\r\n]+(?=(?:[^<]+|<(?!/?p\b))*</p>) |
|
![]() |
![]() |
![]() |
#5 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 691
Karma: 3026110
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
|
Quote:
You could do a replace with a <space> character and perhaps have an additional space if line 1 ended with a trailing space. In the past if I had a book that was presented with multiple lines per paragraph I would open it first with Sigil and do a reformat and prettify using that before returning to Calibre. BobC |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Connoisseur
![]() Posts: 76
Karma: 10
Join Date: Feb 2022
Device: None
|
Kovid gave me the answer I needed; \n and replace with a space to join up the lines.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PDF - relation between "line un-wrapping factor" and "unwrap line" (heuristic proc.) | dr_Fell | Conversion | 1 | 10-16-2017 10:56 PM |
Change "Remove ImageMagick" Breaks Generate Cover Plugin | JimmXinu | Development | 6 | 05-13-2016 12:07 AM |
"Remove the dependency on the zip command line tool when developing plugins"? | JimmXinu | Plugins | 2 | 07-13-2012 02:09 PM |
inserting a "ruled Line" /chapter and page breaks | tscamera | Calibre | 3 | 01-05-2011 04:47 PM |
Line indents using "<div>" tags | HarryT | Kindle Formats | 11 | 04-29-2009 10:18 PM |