02-11-2012, 12:20 AM | #1 |
Member
Posts: 14
Karma: 475352
Join Date: Feb 2012
Device: Kindle Paperwhite 2
|
Regular Expression: does not replace with spaces
Since the 'remove spacing between paragraphs' conversion option is not working for a particular book I'm converting, I wanted to use a regular expression like this:
(search field): \.<br/><br/> (replace field): .<br/> <-- 5 spaces after last break (they only appear as one in this post) It works in that the extra line is removed. If I replace the 5 spaces with characters, it works. Using '\ ' does not work either. I tried inserting a tab by using \t but that did not work either. Anyone know why my spaces are not appearing in the converted output? Or, do you know why the 'remove spacing between paragraphs' option is not working? Thanks, Chris |
02-11-2012, 05:53 AM | #2 |
Wizard
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
In HTML spaces at the point you mention would be ignored for display purposes. You would have to make them non-breaking spaces for them to have any effect on the output.
|
Advert | |
|
02-11-2012, 12:53 PM | #3 |
Member
Posts: 14
Karma: 475352
Join Date: Feb 2012
Device: Kindle Paperwhite 2
|
Thanks for the info.
But what would I enter into the 'replace' field within calibre? How do I make them non-breaking? How would I add the spaces after this statement: \.<br/> <-- how do I tell calibre I want the 5 spaces or, as alternative, a tab at this point? -Chris |
02-11-2012, 01:31 PM | #4 | |
Well trained by Cats
Posts: 29,689
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Code:
5 times :) But it really sounds like you should be editing the source and using a separate class (indent) or blockquote for that paragraph Sigil is an editor |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help with regular expression search/replace | bfollowell | Sigil | 12 | 06-20-2013 07:36 PM |
Need Text editor for specific Find/Replace Regular Expression | scubaddictions | Workshop | 11 | 08-17-2011 07:58 PM |
Find/Replace bogus line breaks in Text editor, w/Regular Expression | scubaddictions | Conversion | 15 | 07-21-2011 08:52 AM |
Search & Replace - Regular expression | oldbwl | Calibre | 2 | 01-09-2011 09:33 AM |
Find/Replace with regular expression | hydrolith | Sigil | 6 | 03-01-2010 08:42 PM |