View Single Post
Old 12-22-2010, 01:58 AM   #46
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
Quote:
Originally Posted by ldolse View Post
Without having your rtf to test with I still have no idea what you're actually seeing. Unless you look in the html there isn't really any way to tell whether the spaces you're referring to are actually in the html or in the css styling. Itimpi and myself have asked you to check the html several times now to no avail.

I've attached an rtf file that converts fine on my system. It's the test file I used when investigating your original report about soft breaks being deleted.

This rtf converts to epub with spacing between paragraphs - but not blank lines - that's Calbre's default style. If you want to get rid of them add the following line to extra css under look and feel - note I've already explained this to you:
Code:
p {margin-top: 0em; margin-bottom: 0.3em}
Hi Idolse. Thanks for your patience.

I tried your test RTF. It behaves the same way. As in, I cannot get it to convert to epub without either getting a bunch of extra blank spaces (Default), or without the original spaces being removed (remove blank lines option). To be sure, I uninstalled Calibre 0.7.33 and re-installed up to 0.7.34.

I tried maximum line height 100%. I wasn't quite sure what this did since I didn't see much of a change.

Your CSS code does the trick with a minor change. I ended up with this:

p {margin-top: 0em; margin-bottom: 0em}

which gives me the desired results: Retaining the original look of the text with occasional whitespace for scene change, etc. Thanks! I added it as the default...hopefully it doesn't cause problems with any other filetypes or anything.

Adding blank lines between paragraphs is still a strange default in my book, but that's another topic . Your CSS code seems to be setting the paragraph margins = 0...right? That's why no blank space between paragraphs added.

This would make a better checkbox than the "remove blank lines" option IMO. That seems to be, if I understand right, add paragraph margins (blank lines), and then remove them...which results problem I started this thread about - all lines, even the ones that were there originally, being removed.

I appreciate the help. A little extra CSS code is easier than converting to filtered html in Word first.

Last edited by GreenMonkey; 12-22-2010 at 02:05 AM.
GreenMonkey is offline   Reply With Quote