View Single Post
Old 01-24-2010, 02:01 PM   #5
Solitaire1
Samurai Lizard
Solitaire1 ought to be getting tired of karma fortunes by now.Solitaire1 ought to be getting tired of karma fortunes by now.Solitaire1 ought to be getting tired of karma fortunes by now.Solitaire1 ought to be getting tired of karma fortunes by now.Solitaire1 ought to be getting tired of karma fortunes by now.Solitaire1 ought to be getting tired of karma fortunes by now.Solitaire1 ought to be getting tired of karma fortunes by now.Solitaire1 ought to be getting tired of karma fortunes by now.Solitaire1 ought to be getting tired of karma fortunes by now.Solitaire1 ought to be getting tired of karma fortunes by now.Solitaire1 ought to be getting tired of karma fortunes by now.
 
Solitaire1's Avatar
 
Posts: 14,939
Karma: 69500000
Join Date: Nov 2009
Device: NookColor, Nook Glowlight 4
Quote:
Originally Posted by A J Edwards View Post
I am having nothing but problems trying to convert books that I have written to epub. As far as I am concerned all teh software goe in the wrong direction! As a writer I want to convert from MS Word (.doc) to .epub and I want it to be WYSIWYG. I have been using Calibre by saving my book as an HTML document and then having Calibre convert it to epub. Unfortunately it is not WYSIWYG, it adds extra blank lines. Even When I edit the document and try and remove line feeds where not strictly necessary I still get extra lines added whenever I have a short line. For example:

"This is a test
to see if it works."

comes out as

"This is a test

to see if it works."

Can anybody help?
Quote:
Originally Posted by DaleDe View Post
How are you creating the short lines? You should be using shift/enter to create them. If not then they are treated as separate paragraphs.

Dale
To piggyback on DaleDe's comment, one of the limitations of HTML is that by default it puts a blank line after each paragraph. It is possible to change this via cascading style sheets (CSS).

When you hit Shift-Enter in MS Word it puts a line break into the paragraph, and moves the text following the line break to the next line, but it still considers the text before and after the line break as one paragraph.

If you want to edit the HTML directly, you can insert the line break tag (<br>) where you want the text to break. To provide an example that I hope is clear:

Using your example, if you hit the return where you want the line to break you will get something like the following in HTML:

<p>"This is a test</p>
<p>to see if it works."</p>

and it will display like this:

"This is a test

to see if it works."


However, when you type the following:

<p>"This is a test<br>to see if it works."</p>

you will get this:

"This is a test
to see if it works."


I hope this helps.
Solitaire1 is offline   Reply With Quote