![]() |
#16 | |
Books are brain food.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,950
Karma: 4836916
Join Date: Nov 2010
Location: U.S.
Device: Paperwhite · Fire HD6/HD8/HD10 · Galaxy Tab A7
|
Quote:
My husband's books start out in MS Word. My current method is to run that text through an online program that spits out clean HTML (Word to Clean HTML), and then I tweak everything in Sigil before creating the mobi using Kindlegen. There's an option in "Word to Clean HTML" to remove empty paragraphs, but even before I started using that method (when I did everything "by hand" in HTML), I never had Kindlegen insert blank lines. |
|
![]() |
![]() |
![]() |
#17 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
My guess is that the default behavior just changed after v1.2. Perhaps it defaulted to no paragraph spacing and a first-line indent when nothing was specified. Newer versions will definitely default to a space between paragraphs and no first-line indent if you provide no instruction otherwise. That's the only explanation I can come up with. I never experienced the problem because I never left paragraph-spacing and first-line indents to chance in the first place. I tell kindlegen how I want it done, I don't let it make its own decisions concerning styling if it can be avoided.
|
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Dark Lord of the Sith
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 60
Karma: 95334
Join Date: Jul 2010
Location: A Galaxy Far Far Away
Device: Sony PRS-505 and PRS-300, Kobo Wifi, Touch and Mini, Kindle 4NT
|
Quote:
Code:
p { margin-top: 0; margin-bottom: 0; text-indent: 1.2em; } |
|
![]() |
![]() |
![]() |
#19 | |
Books are brain food.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,950
Karma: 4836916
Join Date: Nov 2010
Location: U.S.
Device: Paperwhite · Fire HD6/HD8/HD10 · Galaxy Tab A7
|
Quote:
Code:
p { margin-top:0; margin-bottom:0; margin-left:0; margin-right:0; text-indent:5%; } If you haven't already, you may want to run all your CSS through the online validator: http://jigsaw.w3.org/css-validator/. It's possible there's CSS code elsewhere that's not well formed, and that's preventing your paragraph CSS from being rendered properly. I hope you're able to figure it out. |
|
![]() |
![]() |
![]() |
#20 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
That should definitely make Kindlegen create a document with no spaces between paragraphs and a first-line indent. If that's not happening, then there must be something else overriding the p element's style, or the style isn't being applied properly, or the external style sheet isn't being linked correctly. Pretty hard to guess without seeing a portion of the affected html (including the head) and the rest of the CSS.
You're saying the exact same source referred to above works as expected with v1.2, but doesn't work with later versions? Last edited by DiapDealer; 03-19-2013 at 03:52 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#21 | |
Books are brain food.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,950
Karma: 4836916
Join Date: Nov 2010
Location: U.S.
Device: Paperwhite · Fire HD6/HD8/HD10 · Galaxy Tab A7
|
Quote:
Darth, if you can post the HTML header information down to <body> and an HTML example of a paragraph, perhaps we can see something wrong there. Are other parts of your CSS being rendered properly? |
|
![]() |
![]() |
![]() |
#22 | |
Dark Lord of the Sith
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 60
Karma: 95334
Join Date: Jul 2010
Location: A Galaxy Far Far Away
Device: Sony PRS-505 and PRS-300, Kobo Wifi, Touch and Mini, Kindle 4NT
|
Quote:
I'll try 2.8 later today and post back results. I have a hunch 2.8 will fix my problem because I just noticed something in the 2.5 ChangeLog on the KindleGen Wiki at https://wiki.mobileread.com/wiki/KindleGen
If 2.8 fails, I'll post a very simple cut-down example. |
|
![]() |
![]() |
![]() |
#23 | |
Dark Lord of the Sith
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 60
Karma: 95334
Join Date: Jul 2010
Location: A Galaxy Far Far Away
Device: Sony PRS-505 and PRS-300, Kobo Wifi, Touch and Mini, Kindle 4NT
|
Quote:
KindleGen 2.8 works, and now my paragraphs are properly indented and unspaced. This solves my problem for self-created files. When converting EPUBs that I haven't created myself, if indent and paragraph spacing are not defined, I'll probably have to tweak the CSS (or take the lazy approach of using KindleGen 1.2). Thanks again! |
|
![]() |
![]() |
![]() |
#24 |
Books are brain food.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,950
Karma: 4836916
Join Date: Nov 2010
Location: U.S.
Device: Paperwhite · Fire HD6/HD8/HD10 · Galaxy Tab A7
|
Yay! I'm glad it's working for you.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Old Thread] Convert epub to mobi with wide left margin on Kindle | victoria0217 | Conversion | 91 | 11-15-2011 05:25 PM |
Unable to convert Mobi to Epub | Japes | Conversion | 27 | 07-19-2011 12:14 AM |
Best software to convert/create epub version for my book | davidnpauly | ePub | 8 | 03-15-2011 08:26 AM |
failed to convert epub to mobi | kievking | Conversion | 7 | 02-06-2011 11:37 AM |
Convert .prc / .mobi to epub | goldberry | Calibre | 3 | 09-12-2010 03:56 PM |