05-11-2013, 01:40 PM | #1 |
Wizard
Posts: 1,071
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Does <blockquote> need <p> tags?
Does <blockquote> need <p> tags? I've seen the <p>-less constructs many times cleaning up PD books, so it seems to be a common thing.
This displays OK in Sigil, but the <p>-less <blockquote> generates a "no character data is allowed by content model". I usually try to eliminate as many errors as possible even if they don't matter, just to avoid missing an important one. Code:
<body> <p>This is OK text with p tags</p> <blockquote> This is block quoted and there are no p tags This is block quoted and there are no p tags This is block quoted and there are no p tags This is block quoted and there are no p tags This is block quoted and there are no p tags This is block quoted and there are no p tags This is block quoted and there are no p tags </blockquote> <blockquote> <p>This is block quoted and there are p tags This is block quoted and there are p tags This is block quoted and there are p tags This is block quoted and there are p tags This is block quoted and there are p tags This is block quoted and there are p tags This is block quoted and there are p tags This is block quoted and there are p tags</p> </blockquote> <p>This is OK text also with p tags</p> </body> F: (<blockquote>)!(<p>)(.*)!(</p>)(</blockquote>) R: <blockquote><p>\3</p><blockquote> Making sure that there's a question, 1. Are <p> required? 2. What would be the correct RegEx to use so as to avoid the error messages? Paul |
05-11-2013, 02:08 PM | #2 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
Advert | |
|
05-11-2013, 02:40 PM | #3 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Yes, I always use them with <div> and that works fine.
|
05-11-2013, 04:40 PM | #4 | |
Well trained by Cats
Posts: 29,791
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
My 'Naked' BQ w/Calibre class) Code:
Find= (?m)<blockquote class="calibre(\d+)">\s+([[:alnum:]].+?[[:alnum:]])\s+</blockquote> Replace= <blockquote class="calibre\1"><div>\2</div></blockquote> Last edited by theducks; 05-11-2013 at 05:06 PM. Reason: Updated |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Blockquote problem | kamanza | Conversion | 2 | 01-20-2013 12:19 PM |
blockquote grievance | Kamikuza | Amazon Kindle | 4 | 11-04-2012 07:03 PM |
Amazon Tags - Popular tags vs Unique tags. | chrisanthropic | Writers' Corner | 6 | 09-19-2011 11:18 PM |
blockquote over ride | dicknskip | Sigil | 3 | 03-21-2011 04:44 PM |
FBReader blockquote | minigrrl | PocketBook | 3 | 03-09-2010 08:09 PM |