View Single Post
Old 04-02-2009, 02:38 AM   #11
cerement
Groupie
cerement knows what time it iscerement knows what time it iscerement knows what time it iscerement knows what time it iscerement knows what time it iscerement knows what time it iscerement knows what time it iscerement knows what time it iscerement knows what time it iscerement knows what time it iscerement knows what time it is
 
cerement's Avatar
 
Posts: 170
Karma: 2000
Join Date: Apr 2008
Location: San José, CA
Device: Amazon Kindle 1, Sony PRS-300, Amazon Kindle 3
Quote:
Originally Posted by tibiafry View Post
I really need to know how to get at least this output
<p>&nbsp;</p>
for each blank line I have in my InDesign document. It's getting a pain in the *** having to do a special style editing every time i need 1, 2, 3 or 4 blank lines before/after a paragraph.
Ideally, you want to separate the display aspects into CSS and leave just the content in the XHTML file. Handcoding things is relatively straightforward, but I don't know enough about InDesign to go about telling you how to handle the automatic conversions.

If all of the <p> tags are getting the same space before, then in the external stylesheet, you would add something along the lines of:
Code:
p {padding-top: 1em}
If the amount of spacing was variable, then simplest (though not "best practice"), is something like:
Code:
<p style="padding-top: 2em">This is paragraph 1</p>
<p style="padding-top: 1em">This is paragraph 2</p>
cerement is offline   Reply With Quote