08-03-2011, 12:44 PM | #16 |
Resident Curmudgeon
Posts: 73,932
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Whatever the class is you are using inside the blockquote has an indent. Set that to a text-indent: 0 and it will not be indented. I just tested this with Firefox and it worked fine.
Code:
<blockquote> <p class="noindent">this is a test.<br/>This isn't a test.</p> </blockquote> .noindent { text-indent: 0 } |
08-03-2011, 01:17 PM | #17 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Apologies for the slight digression, but isn't using the named entity "—" rather more readable than "—"?
|
Advert | |
|
08-03-2011, 02:54 PM | #18 | |
Wizard
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
Quote:
Anyway if you solely want advice on html authoring follow JSWolf's advice... Last edited by ldolse; 08-03-2011 at 03:00 PM. |
|
08-03-2011, 03:20 PM | #19 |
Wizard
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
Give this one more shot...
Here is some very simple HTML, no css: Spoiler:
Add that to Calibre in a new book record. Then convert, go to the 'Look and Feel' section, and paste the following lines in extra CSS: Code:
p {margin-top: 0em; margin-bottom: 0.0em; text-indent:1.5em} h3 + p {text-indent:0} blockquote > p {text-indent:0;} click OK to convert. If you're converting to mobi (your first screenshot is of a mobi file and not html) then I suggest you not use the Calibre viewer to decide if your ebook is 'good' as Calibre will convert from mobi to ePub to load it in the Calibre viewer. Use the Kindle previewer for accurate rendering of mobi files. That output looks like this on my machine: Converted mobi file attached. Last edited by ldolse; 08-03-2011 at 03:28 PM. |
08-03-2011, 03:51 PM | #20 |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
|
Advert | |
|
08-03-2011, 09:48 PM | #21 |
Wizard
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
|
08-06-2011, 09:36 PM | #22 |
Banned
Posts: 242
Karma: 51054
Join Date: Jun 2011
Location: Belleville, IL
Device: Kindle-3
|
I figured it out. It's one of those things so simple you can't imagine you didn't think of it in the first ten minutes. Now I know how Kary Mullis felt after he came up with PCR. (It was so simple an idea, he couldn't believe that no one else had already thought of it.)
You can't use a paragraph end tag before the block quote. Just use a line break instead and use the paragraph end tag after the block quote. That way the block quote won't be looked upon as a new paragraph and get automatically indented. This is true whether you use CSS to do the space removal/indents or allow Calibre to do it. Duh! So simple.... Thanks for everyone's help! Last edited by Ransom; 08-07-2011 at 01:10 AM. |
08-06-2011, 09:44 PM | #23 |
Banned
Posts: 242
Karma: 51054
Join Date: Jun 2011
Location: Belleville, IL
Device: Kindle-3
|
There are at least three different codes for an Em dash in HTML that have been used over the years. Quite honestly, I'm not sure which is the latest or considered the more proper of the three. But the code I use seems to work everywhere no matter what, so that's why I use it. And it definitely works fine with Calibre.
Last edited by Ransom; 08-06-2011 at 09:48 PM. |
08-06-2011, 11:15 PM | #24 |
Banned
Posts: 242
Karma: 51054
Join Date: Jun 2011
Location: Belleville, IL
Device: Kindle-3
|
By the way, for those looking for a simple way to make the block quote text stand out from the rest, I just use a 'sub' (subscript) tag. I think that looks better than anything else myself. This is exactly what I was after from the beginning:
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Touch Horizontal white streaky lines - on "Connected and Charging" screen | beautifulsoup | Kobo Reader | 0 | 07-27-2011 06:47 PM |
Feature Request: configurable space setting for "Insert blank line" in "Look & Feel" | therealjoeblow | Calibre | 15 | 07-25-2011 03:14 PM |
Ten Favorite Noir Lines...Plus "The Grifters" Coming to Kindle | Paul Levine | Reading Recommendations | 5 | 04-16-2011 12:53 AM |
Woher bekomme ich "Infinite Jest" oder "Unendlicher Spaß" von David Foster Wallace? | bitschnau | Erste Hilfe | 3 | 11-01-2010 01:22 PM |