View Single Post
Old 12-31-2011, 04:43 AM   #10
pietvo
Reader
pietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notes
 
pietvo's Avatar
 
Posts: 520
Karma: 24612
Join Date: Aug 2009
Location: Utrecht, NL
Device: Kobo Aura 2, iPhone, iPad
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.
The spacing between paragraphs comes from margin-bottom of the first paragraph and/or margin-top of the second. When there are also the corresponding paddings they also contribute but they aren't often used with <p>.

And in XHTML the <br> should be spelled <br /> or <br/> (the first one being HTML compatible). The spacing between lines inside a paragraph, including those induced by <br />, is determined by line-height.
pietvo is offline   Reply With Quote