![]() |
#1 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Dec 2013
Device: Mac
|
Extra paragraph marks in ePub
First time user here.
I apologize for not reading the documentation. This is likely a one time use, and I have a huge To Do list. I'm hoping someone with help me slam dunk this problem so I can move on. I imported a Mac Pages iPub document for the purpose of making it recognize my TOC. Worked like a charm. Thanks to the programmers. However, it added extra paragraph marks to the Book View. HTML example follows: <p class="s6">Embarked onboard ship .... but friends must part.</p> <p class="s6">The ship left the wharf .... for the comfort of all.</p> In the Book View there are two paragraph marks, 4 spaces, and one more paragraph mark between the text within the <p>....<\p> pairs. In the original there was a single paragraph mark. An explanation or just a fix would be much appreciated. Thanks, Carl A. Carlson |
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,908
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Only lines with tags , count. Even then many devices ignore repetitive tag pairs shown below. <p> </p> is a blank line (really a line with a single space) Imho, it is better to set a top or Bottom Margin to gain normal paragraph spacing. You can adjust the 'gap' from a single CSS entry |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
HTML is a language unto itself. It is readable, but it is not read the same by display programs. What you do in a word processing program may or may not work well in HTML. As theducks said, don't put blank lines in for spacing. Instead set the top and bottom margin for paragraphs.
If styles are available in a word processing program, learn them and use them. They translate better into HTML than typewriter like blank lines, etc. |
![]() |
![]() |
![]() |
#4 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,908
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
<p>paragraph 1</p><p>Paragraph 2</p>
is valid and the results are still the same: paragraph 1 Paragraph 2 |
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Dec 2013
Device: Mac
|
My bad.
My question was not clear. The extra lines are in the Book View and in the saved ePub file when viewed in Kindle Previewer. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,908
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
#7 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
You need to check what kind styling is being applied to the class "s6".
Quote:
You need to see what the epub looks like in an epub reading app such as ADE (or on a device that reads epubs), and get it looking the way you want it to look before you even start thinking about what happens to it after it's converted to a Kindlebook. Also look for any: Code:
white-space: pre; Code:
white-space: pre-wrap; Last edited by DiapDealer; 12-11-2013 at 10:44 PM. |
|
![]() |
![]() |
![]() |
#8 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Dec 2013
Device: Mac
|
Code View shows:
<p class="s6">Embarked onboard ship .... but friends must part.</p> <p class="s6">The ship left the wharf .... for the comfort of all.</p> I have of course removed some of the text: "...." |
![]() |
![]() |
![]() |
#9 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,908
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
The former is between paragraphs The later is every line |
|
![]() |
![]() |
![]() |
#10 | ||
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
What he's saying here: Quote:
I mean, if he just meant that there was too much vertical whitespace, wouldn't he have said that? What about seeing paragraph "marks" in book view? "Two paragraph marks, 4 spaces, and one more paragraph mark." Are you thinking that he means 6 blank lines between paragraphs, or...? Hitch |
||
![]() |
![]() |
![]() |
#11 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,908
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Sounds like GIGO to me. |
|
![]() |
![]() |
![]() |
#12 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
We need a screen-shot of both code-view and book-view, I think.
|
![]() |
![]() |
![]() |
#13 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
I agree, a screenshot should make this clear.
|
![]() |
![]() |
![]() |
#14 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Until then, my money's on "white-space: pre;" from iPub creating swathes of unnecessary whitespace.
I have no idea what "paragraph mark" might mean. If it's not a pilcrow, then perhaps it's the xml entity equivalents of the angle brackets. You know... Tidy Gone Wild when trying its best to fix some particularly badly formed html? Leaving what renders as html code in book view? Just guessing though. I'm thinking our OP has already moved on to the next item on their To Do list. ![]() |
![]() |
![]() |
![]() |
#15 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Dec 2013
Device: Mac
|
Sorry Guys I thought I had closed this question.
The problem was the pretty print feature on Sigil was adding stuff to the file that was interacting with Apple's HTML. It was a question of conflicting styles of using HTML not a bug. The solution was to turn pretty print and allied options off before loading the file. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Why define a paragraph as a span with no different or extra formatting? | bfollowell | ePub | 7 | 03-16-2011 10:30 PM |
word macro for editing needless paragraph marks | excalibra | Workshop | 6 | 03-12-2011 10:35 AM |
Extra paragraph line when converting from LRF | jhempel24 | Calibre | 3 | 08-18-2010 07:00 AM |
I'm having a problem with extra paragraph spaces | akosimike | Calibre | 10 | 05-27-2010 06:53 PM |
Extra punctuation marks in epub after loading from SRL to PRS-600 | planters | Sony Reader | 8 | 03-12-2010 11:38 AM |