View Single Post
Old 12-27-2010, 04:25 PM   #47
tscamera
Enthusiast
tscamera began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Dec 2010
Device: PRS-650 ... ipad
Cool answer by dr.ruth

Quote:
Originally Posted by GreenMonkey View Post
Hey guys

I've noticed this on a lot of RTF files and I haven't been able to figure it out.

When I convert to EPUB, I get extra line breaks after each paragraph, that weren't in the original RTF.

¶ here stands for Paragraph break in the original RTF:

Like this in the RTF:

This is a paragraph¶
This is paragraph two.

Comes out:

This is a paragraph

This is paragraph two.



If I ask Calibre to "Remove spacing between paragraphs" under Look & Feel...it removes them. But it removes ALL breaks, then...including the ones that ARE supposed to be there.

So if I have this in the RTF:
This is a paragraph¶

This is paragraph two.

I get:

This is a paragraph.
This is paragraph two.


Any fix for this kind of behavior? I searched the forum...tried tweaking the Xpath detection stuff with a \ (even though RTF isn't HTML related). I did open the doc and turn on all formatting characters to make sure there weren't any extra breaks. Nope. Just (p).

I seem to either get: spaces between all paragraphs, or, no space ever. What I don't get is why I'm getting blank lines between paragraphs at all - they aren't present in the original RTF.
Hey,
i tried to figure out, but i get:

<body class="calibre">
<div class="calibre1">
<p class="calibre2">&nbsp;</p>

<div class="calibre1">
<p class="calibre2">Like this in the RTF:</p>

<p class="calibre2">&nbsp;</p>

<p class="calibre2">This is a paragraph</p>

<p class="calibre2">This is paragraph two.</p>

<p class="calibre2">&nbsp;</p>

<p class="calibre2">So if I have this in the RTF:</p>

<p class="calibre2">&nbsp;</p>

<p class="calibre2">This is a paragraph</p>

<p class="calibre2">&nbsp;</p>

<p class="calibre2">This is paragraph two.</p>
</div>
</div>
</body>

so, what's wrong about it?
...said by dr.ruth westheimer

so, use SIGIL or unpack the epub and post the code.
then everybody will know a bit.
tscamera is offline   Reply With Quote