![]() |
#1 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Mar 2012
Device: none
|
blank line
I was just wondering if anyone knew how to insert blank lines into a document (e.g. a blank line between the chapter title and the start of the text).
They stay up in sigil but when I look at it in adobe reader they're gone. They also disappear in calibre too. Any help would be great! |
![]() |
![]() |
![]() |
#2 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Mar 2012
Location: Königswinter, Germany
Device: Amazon Kindle
|
Try <b />.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,029
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
In the XML...
Code:
<h2 class="chapter">Chapter One</h2> Code:
.chapter { margin-top: 25px; margin-bottom: 25px; text-align: center { |
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,352
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I like to use a CSS method similar to what JSWolf suggested. It seems a lot cleaner to me than having empty p, div tags cluttering things up or lot's of extra br's laying around. It would probably be part of my default "first paragraph of a chapter" class.
Code:
.first-para { margin-top: 25px; text-indent: 0; } |
![]() |
![]() |
![]() |
#5 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,891
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
That would be a <br />
BR may not exist naked but must exist within a P, DIV or H# tag pair. Also many rendering programs will ignore when repeated: <br /> <br /> There must be a printing character between. Wolf man's margin solution is more elegant in most cases. <h2 class="chapter">Chapter 100 <br />A Century of Great Examples</h2> for a 2 line chapter title that will appear as a single TOC entry in a Sigil generated TOC |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Enthusiast
![]() Posts: 31
Karma: 16
Join Date: Feb 2012
Location: Montréal
Device: Sony PRS-T1
|
Use CSS, as suggested above the above.
If you go about adding an empty line here, you'll have to add an empty line at every chapter. And when you decide you'd rather have two empty lines, you'll have to add another empty line at each and every chapter. Etc. In "theatre" literacy, it would be the difference between : "I am Michael, and you-the-public can hear I'm talking softly now that I turn around to face my beloved and tell here «I love you»" And MICHAEL (Talking softly) - I love you. |
![]() |
![]() |
![]() |
#7 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,613
Karma: 6718541
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
|
Quote:
Code:
h2 { margin-top: 25px; margin-bottom: 25px; text-align: center { Also, I prefer indented paragraphs in the body of the text with the first paragraph not indented. Since I have to style the first paragraph anyway, to change the indent, I use DiapDealer's method of adding space before the first paragraph instead of after the H2 heading, again prefering em units. |
|
![]() |
![]() |
![]() |
#8 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,029
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I prefer fixed spacing in those sort of situations. A section break space gets 30px from me. That way they don't change based on the font size. They stay the same. And they look better at the fixed sizes I've chosen.
|
![]() |
![]() |
![]() |
#9 |
Enthusiast
![]() Posts: 31
Karma: 16
Join Date: Feb 2012
Location: Montréal
Device: Sony PRS-T1
|
30px will look much different on an eInk device (~167ppi) than it will on, say, the new iPad.
|
![]() |
![]() |
![]() |
#10 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,029
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#11 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Mar 2012
Device: none
|
Thanks for all the help.
I'm completely new to CSS so I couldn't really understand how to change the styles so I just went with manually adding the gaps after the chapter headings: <p> </p>. I tried using the <br /> but when I opened the file in calibre it didn't convert. Does anyone know any good sites/guides that could help me get started with CSS coding? It's be great to understand it a little bit. |
![]() |
![]() |
![]() |
#12 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,029
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#13 | |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Mar 2012
Device: none
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Maintain Blank-Line-Scene-Breaks while converting? | Uluhara | Conversion | 1 | 06-18-2011 04:54 PM |
Blank line in code | Jellby | Feedback | 16 | 05-18-2011 10:42 AM |
get rid of blank line html code | Blurr | Calibre | 4 | 12-28-2009 09:20 PM |
Sigil 1.6 - deleting blank line very slow | lol | Sigil | 2 | 12-24-2009 11:54 AM |
Random differences in blank line conversion in ePub | HarryT | Calibre | 14 | 08-13-2009 03:31 AM |