03-31-2009, 07:14 AM | #1 | ||
Enthusiast
Posts: 43
Karma: 78
Join Date: Jan 2009
Device: Iliad
|
Exporting epub with InDesign: I lose blank lines!
When I export an epub from InDesign, all blank lines get lost in the procces.
Quote:
Quote:
Thanks |
||
03-31-2009, 07:25 AM | #2 |
frumious Bandersnatch
Posts: 7,534
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Don't leave blank lines, use vertical spacing instead. I have never used InDesign, but I guess you can assing some vertical space above the "then a blank line between..." paragraph or below the previous one.
|
Advert | |
|
03-31-2009, 07:33 AM | #3 | |
Enthusiast
Posts: 43
Karma: 78
Join Date: Jan 2009
Device: Iliad
|
Quote:
Any other way? |
|
03-31-2009, 07:40 AM | #4 | |
Resident Curmudgeon
Posts: 76,028
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
It's not as hard as it sounds. Could maybe be easier if you have all the paragraphs without an indent like in some books. if you want to send me one of your eBooks in ePub, I cna have a go at it if you also point out where you want the spaces. |
|
03-31-2009, 07:41 AM | #5 |
frumious Bandersnatch
Posts: 7,534
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Open the XHTML generated in the ePUB file by InDesign. Are the "empty lines" there in any way (maybe an empty <P> or <DIV> tag)? If they are, you could post-process the ePUB to add something ( ) there.
If they aren't, there might be a way to run a macro/script that finds empty lines and adds a space or non-breaking space there. Then maybe when creating the ePUB these empty lines will not be lost. |
Advert | |
|
03-31-2009, 07:43 AM | #6 | |
Enthusiast
Posts: 43
Karma: 78
Join Date: Jan 2009
Device: Iliad
|
Quote:
No it's not there at all. I've searched it. I was writting a post winning to mobipocket cause it eated the lines and realized that it isn't there even on epub. Maybe post processing the xhtml is an option. But it will suck lol. PS: can I force a page jump in epub? like <hr> or something lol Last edited by tibiafry; 03-31-2009 at 07:48 AM. |
|
03-31-2009, 11:12 AM | #7 |
frumious Bandersnatch
Posts: 7,534
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
04-01-2009, 03:08 AM | #8 |
Enthusiast
Posts: 43
Karma: 78
Join Date: Jan 2009
Device: Iliad
|
|
04-01-2009, 05:58 AM | #9 |
frumious Bandersnatch
Posts: 7,534
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Hmm... I don't know what's "special", but I got most of my information from http://www.w3schools.com/Css/default.asp (or rather, google searching for different things often directed me there).
|
04-01-2009, 10:52 AM | #10 | |
Enthusiast
Posts: 43
Karma: 78
Join Date: Jan 2009
Device: Iliad
|
Quote:
I really need to know how to get at least this output <p> </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. Thanks. P.s.: I was searching the problem on google and this thread is the first result :S |
|
04-02-2009, 02:38 AM | #11 | |
Groupie
Posts: 170
Karma: 2000
Join Date: Apr 2008
Location: San José, CA
Device: Amazon Kindle 1, Sony PRS-300, Amazon Kindle 3
|
Quote:
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} Code:
<p style="padding-top: 2em">This is paragraph 1</p> <p style="padding-top: 1em">This is paragraph 2</p> |
|
12-04-2010, 01:01 AM | #12 |
Enthusiast
Posts: 35
Karma: 2000
Join Date: Dec 2010
Device: none
|
How to add space before paragraphs only where I have it already..
Hi everyone,
I have a similar question in regards to having InDesign keep the spaces that already exist ahead of certain paragraphs when the book is exported to ePub format. In most books, there is some space ahead of certain blocks of text/paragraphs because it makes reading easier or it separates parts of the story, etc. In my case there might be three or four paragraphs that tell part of the story, basically one set of paragraphs, and then I may use some blank space, a break between the preceding block of text/paragraphs and the following one (like I'm about to do here I want to keep this spacing, but I see a lot of suggestions to simply use "Space before" or "Space after" to put the space in. But I find that puts space before -every- paragraph, leaving each paragraph separated by white space from all the others. That's definitely not what I'm trying to accomplish. There must be some simple way to have InDesign export what I've written -as it is- without removing all the empty spaces and shoving all the paragraphs together. The idea of changing the entire written book to put a space before specific paragraphs simply because InDesign can't seem to interpret existing lines/spaces is nightmarish. Likewise, having to export InD to ePub then open the file in Sygil or something to edit the ePub sounds a bit embarrassing for a program like InDesign. (If you export to Pdf it comes out looking perfect, blank space and all...so why not handle it going to ePub?) Any suggestions on how to export a document as it is and have InD convert to ePub and get it right? The help will be greatly appreciated. -JTT |
12-04-2010, 03:19 AM | #13 |
Addict
Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
|
InDesign DOES remove all empty spaces...(which makes sense) If you ID file is correctly formatted using style sheets, then it will styled like this:
ChapterName Body No Indent body body body bodySpaceabove body body body if you don't then after you make the epub. You need to edit the Template.CSS file (I use dreamweaver) Copy and past the body style and simply add space above and rename it : Code:
p.body { font-family: "Minion Pro", serif; line-height: 1.30em; font-size: 0.96em; margin-bottom: 0.00em; margin-top: 0.00em; text-indent: 0.00em; margin-right: 0.00em; margin-left: 0.00em; text-align: justify; font-weight: normal; font-style: normal; color: rgb(0,0,0); p.bodyspaceabove { font-family: "Minion Pro", serif; line-height: 1.30em; font-size: 0.96em; margin-bottom: 0.00em; margin-top: 1.5em; text-indent: 0.00em; margin-right: 0.00em; margin-left: 0.00em; text-align: justify; font-weight: normal; font-style: normal; color: rgb(0,0,0); |
12-04-2010, 03:12 PM | #14 |
Resident Curmudgeon
Posts: 76,028
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
That is awful looking CSS code. Way too much crap in it and lines that don't need to exist.
When you go into the CSS to edit it, also fix the poor coding as well. |
12-04-2010, 04:58 PM | #15 |
Addict
Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
|
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Non-alpha characters not exporting properly to ePub from InDesign | forlor | ePub | 9 | 07-12-2013 02:02 AM |
Calibre Indent Issue When Removing Blank Lines (Converting From HTML to MOBI or EPUB) | David Derrico | Calibre | 5 | 08-04-2010 12:13 AM |
Blank lines between paragraphs? | ascherjim | OpenInkpot | 30 | 12-03-2009 12:19 AM |
Insert Blank Lines Between Paragraphs | Timoleon | Calibre | 14 | 03-22-2009 02:43 PM |
Blank Lines | vivaldirules | Upload Help | 55 | 03-02-2009 03:17 PM |