10-09-2016, 04:43 AM | #196 |
Interested in the matter
Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
|
Calibre Editor, function regex.
Search (with multiline activated): <blockquote>.*<p>.*</blockquote> Replace: Code:
def replace(match, number, file_name, metadata, dictionaries, data, functions, *args, **kwargs): return match.group().replace("<p>","<p class=""note"">") |
10-09-2016, 05:21 AM | #197 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Sure I will since this function can have a lot more uses!! Thanks for it. Oh! and I missed the theducks solution above which of course is also of practical use. Thanks too!!! Last edited by roger64; 10-09-2016 at 08:06 AM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
direkter Umlaut oder lieber HTML Code in Epub ? | NASCARaddicted | Erste Hilfe | 14 | 06-16-2011 06:54 AM |
Programming language code snippets in ebooks? | Connochaetes | Writers' Corner | 7 | 10-18-2010 03:43 PM |
ebook-convert HTML to EPUB and problem with <pre><code> | mikegr | Calibre | 2 | 03-09-2010 03:27 PM |
css override code for margins? | Amalthia | Calibre | 15 | 08-11-2009 08:20 PM |
Problems generating ePub from HTML/CSS | AlexBell | Calibre | 3 | 07-17-2009 06:10 AM |