11-01-2011, 11:11 AM | #1 |
Zealot
Posts: 106
Karma: 52102
Join Date: Jun 2010
Device: Samsung Android Tablet w/Moon+ Pro Reader
|
Line breaks with no style
I have some html files with simple unformatted line breaks, ie
Code:
<br> Code:
<br class="calibre1"><br> Is there a config option to disable this? thanks The REAL Joe |
11-01-2011, 03:45 PM | #2 | |
Well trained by Cats
Posts: 29,782
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:
<br /> is the accepted form (NB I have never seen Calibre insert without the (space)/> ) |
|
11-01-2011, 04:15 PM | #3 |
Evangelist
Posts: 416
Karma: 1045911
Join Date: Sep 2011
Location: Cape Town, South Africa
Device: Kindle 3
|
Using very oldschool html is never going to be without issues.
I've never seen Calibre use un-self-closing <br> tags, however it makes me think that your text is not in paragraphs/divs? If that is the case, it may be a better idea to encapsulate them first - after all these pagebreaks sound like you are using them to create paragraphs in the first place. |
11-01-2011, 10:57 PM | #4 | |
Zealot
Posts: 106
Karma: 52102
Join Date: Jun 2010
Device: Samsung Android Tablet w/Moon+ Pro Reader
|
Quote:
No, they're all in proper paragraphs with proper classes and style sheets. I just get lazy sometimes and use <br> to add an extra line or 2 here and there, or to break things like quoted passages, eg Code:
<p class="indentedquote">This is some quoted passage, <br>This is the next line in the quote, <br>and yet another line, <br>and the final line in the quote.</p> It's very fast and easy to format misc things like this, although, yes, I know it's taking shortcuts from the perfect world. Cheers The REAL Joe |
|
11-01-2011, 11:38 PM | #5 |
Evangelist
Posts: 416
Karma: 1045911
Join Date: Sep 2011
Location: Cape Town, South Africa
Device: Kindle 3
|
Yeah fair enough - I'd just been converting some stuff which was using br's for paragraph ends and it came to mind!, I'd still convert them to <br /> and see if it still doubles them.
|
11-01-2011, 11:51 PM | #6 | |||
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
I may be far off base with my limited knowledge of HTML but I'm going to take a stab at this anyways.
Quote:
<br class="calibre1" /> (notice the self-closing / these aren't optional) and leaves your improper tag of <br> in place unaltered. First, you should be using <br /> not <br> Quote:
Quote:
I'm also curious what format are you converting from/to? Last edited by DoctorOhh; 11-01-2011 at 11:55 PM. |
|||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Weird line breaks on Kindle?!? | echthemoderate | Kindle Formats | 0 | 06-14-2011 10:44 PM |
HTML to TXT and line breaks | vbdasc | Calibre | 6 | 12-04-2010 11:40 AM |
Spurious Line Breaks | Halk | Workshop | 1 | 05-15-2010 01:22 PM |
CSS for line breaks after dashes? | JaneFancher | Sigil | 4 | 04-05-2010 12:18 PM |
No line breaks | ecpepper | Amazon Kindle | 3 | 08-09-2009 06:42 PM |