View Single Post
Old 11-11-2010, 04:20 AM   #1
GreenMonkey
DRM hater
GreenMonkey ought to be getting tired of karma fortunes by now.GreenMonkey ought to be getting tired of karma fortunes by now.GreenMonkey ought to be getting tired of karma fortunes by now.GreenMonkey ought to be getting tired of karma fortunes by now.GreenMonkey ought to be getting tired of karma fortunes by now.GreenMonkey ought to be getting tired of karma fortunes by now.GreenMonkey ought to be getting tired of karma fortunes by now.GreenMonkey ought to be getting tired of karma fortunes by now.GreenMonkey ought to be getting tired of karma fortunes by now.GreenMonkey ought to be getting tired of karma fortunes by now.GreenMonkey ought to be getting tired of karma fortunes by now.
 
GreenMonkey's Avatar
 
Posts: 945
Karma: 2066176
Join Date: Jun 2010
Location: Michigan
Device: Nook ST glow, Kindle Voyage
RTF to EPUB...extra line breaks

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.

Last edited by GreenMonkey; 11-11-2010 at 05:30 AM.
GreenMonkey is offline   Reply With Quote