Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 12-30-2011, 02:08 PM   #1
nymormon
Junior Member
nymormon began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Dec 2011
Location: New York
Device: kindle
Line spacing troubles

I've been trying to convert some text files to EPUB, and I am not getting the correct format. I have a doublespace between some paragraphs, yet in the finished product it looks triple spaced. On some lines that should be singlespaced, it is doublespaced. I've looked at the code, and it appears that the culprit is the <p></p>. When I try to remove the first <p>, and replace the </p> with a <br>, it won't let me. I'm not sure what to do to get the formatting that I want.
nymormon is offline   Reply With Quote
Old 12-30-2011, 02:19 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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:
Originally Posted by nymormon View Post
I've been trying to convert some text files to EPUB, and I am not getting the correct format. I have a doublespace between some paragraphs, yet in the finished product it looks triple spaced. On some lines that should be singlespaced, it is doublespaced. I've looked at the code, and it appears that the culprit is the <p></p>. When I try to remove the first <p>, and replace the </p> with a <br>, it won't let me. I'm not sure what to do to get the formatting that I want.
1) you can't break up a Tag pair
2) adjust the paragraph style (might/should be in the stylesheet)
margin-bottom and or margin-top values. there is little need for empty paragraphs as you show (except for scene breaks)
3) <br /> can't be naked. it must be contained inside a tag pair (H or P)
theducks is offline   Reply With Quote
Advert
Old 12-30-2011, 05:20 PM   #3
nymormon
Junior Member
nymormon began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Dec 2011
Location: New York
Device: kindle
Where do I find a stylesheet? The Styles folder doesn't seem to contain anything, and I don't know where else to look for it.
nymormon is offline   Reply With Quote
Old 12-30-2011, 06:57 PM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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:
Originally Posted by nymormon View Post
Where do I find a stylesheet? The Styles folder doesn't seem to contain anything, and I don't know where else to look for it.
then look at the (embeded) styles in the header area (code view) of each document.

That could also be the indication of your issue. No Styles = DEFAULTS as supplied by the viewer
theducks is offline   Reply With Quote
Old 01-02-2012, 05:16 AM   #5
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Read some sites about basic (x)HTML and CSS. Pablo's simple tutorial could be a good start. That kind of knowledge is the minimum you should know.
Toxaris is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help with line spacing henrypartridge Sigil 16 03-18-2016 11:33 AM
Need help with line spacing ficbot Sigil 4 05-31-2011 01:52 PM
7.34 line spacing??? JSWolf Calibre 18 12-19-2010 11:09 PM
Line spacing Ivo Kobo Reader 3 06-30-2010 12:54 PM
Line spacing in Calibre? leebok21 Calibre 7 08-10-2008 05:31 PM


All times are GMT -4. The time now is 05:04 PM.


MobileRead.com is a privately owned, operated and funded community.