search & replace doesnt work with "newlines" in PDF to MOBI conversion
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Invalid
|
Undecided
|
Unassigned |
Bug Description
(I reported this in detail with screen prints on forum as well: https:/
But basically...
Hello,
(btw, this program is great, have used it on several conversions without issue)
I am trying to convert a PDF to MOBI for a Kindle keyboard (called a 3rd edition, that does 3G and WiFi built in)
Anyway -- on straight conversion - several "paragraph" or "section" headers in PDF get converted with the text squashed together without spaces.
Meaning in pdf file you would see "first second third" but after conversion to MOBI you get "firstsecondthird"
I tried doing "search & replace" in conversion - to no avail -- in my test (screen prints attached) you can see i tried replacing "newline" with a string of letter "j"s -- which didnt happen.
From the "log file" -- I see:
Conversion options changed from defaults:
read_metadata_
output_profile: 'kindle_pw3'
search_replace: '[["[a-z]\\\\n", "jjj"]]'
verbose: 2
++AND++
'search_replace': '[["[a-z]\\\\n", "jjj"]]',
No other references to "\n" to remove the newline or linefeed.
See attached screen prints for actual screens, "test" results and ebook viewer.
Is this is bug? Or do you have another regular expression that would match the paragraph/section "newlines" that the converter would except?
Thanks for your Help !
this is the source PDF I was converting.