|  05-16-2012, 12:58 PM | #16 | 
| Well trained by Cats            Posts: 31,249 Karma: 61360164 Join Date: Aug 2009 Location: The Central Coast of California Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A | |
|   |   | 
|  05-16-2012, 01:32 PM | #17 | 
| frumious Bandersnatch            Posts: 7,570 Karma: 20150435 Join Date: Jan 2008 Location: Spaniard in Sweden Device: Cybook Orizon, Kobo Aura | 
			
			First consequence: indents no longer work.
		 | 
|   |   | 
|  05-16-2012, 01:42 PM | #18 | 
| eBook Enthusiast            Posts: 85,560 Karma: 93980341 Join Date: Nov 2006 Location: UK Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6 | 
			
			There are probably even worse consequences. Follow that advice and you'd end up with a single paragraph in each chapter. On many devices, jumping to a hyperlink takes you to the start of the paragraph in which the link destination occurs, so all your hyperlinks break, too.
		 | 
|   |   | 
|  05-18-2012, 12:32 PM | #19 | |
| Junior Member  Posts: 5 Karma: 10 Join Date: May 2012 Device: Kindle | Quote: 
 Just as webpages can use a mixture of <br /> and <p></p> tags, you can use whatever works for a particular purpose. What you have to consider is the value of the extra space that <p> gives you, in terms of reading comfort, but there are times when you don't want that space. | |
|   |   | 
|  05-18-2012, 12:37 PM | #20 | 
| Junior Member  Posts: 5 Karma: 10 Join Date: May 2012 Device: Kindle | 
			
			This would be useful if true. At least in Sigil, you can still indent after doing what I suggested. To be sure, this results in insertion of <p></p> tags, and <blockquote>, but isn't that a desired outcome when you might indent?
		 | 
|   |   | 
|  05-18-2012, 01:01 PM | #21 | 
| frumious Bandersnatch            Posts: 7,570 Karma: 20150435 Join Date: Jan 2008 Location: Spaniard in Sweden Device: Cybook Orizon, Kobo Aura | 
			
			With indents I mean first-line indents in every paragraph. Sure, you can add them by adding back <p></p> to every paragraph, but why remove them the first time? And <p></p> does not give extra space, at least not if you have them properly styled. In fact, a style such as "p { margin: 0, text-indent: 0; padding: 0; }" should give the same visual appearance as <br/>, but with the advantage of it being more semantic, easier to modify, and easier to process (some applications process one paragraph at a time, if everything is a single paragraph they'll struggle to process everything in one chunk). | 
|   |   | 
|  05-18-2012, 01:26 PM | #22 | 
| Resident Curmudgeon            Posts: 80,740 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | 
			
			I just want to quote this well written post in the ePub section about using Calibre to do ePub > ePub conversions. | 
|   |   | 
|  05-19-2012, 01:56 AM | #23 | |
| 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: 
 Learning to write even moderately decent CSS isn't like learning to create a nuclear bomb. Someone can teach himself in almost no time, and the average DIY book takes about 10-12 classes; a few header classes, 3-4 paragraph classes, and that's about it. Our internal, House CSS has over 100 classes, but we do this professionally, and need styles for everything from lists to tables to Bob's weirdo paragraph. The average joe can even lift a sheet of CSS from Jellby to save time (highly recommended clean code). And, trust me on this, taking a few minutes to learn it, and apply it properly, will not only give you a feeling of accomplishment, but will give you a basis to build on the NEXT time you want to convert a book. Taking shortcuts now won't help you when you DO want to do something a little more complicated--like 2-way footnotes, or what-have-you. Just my $.02 Hitch | |
|   |   | 
|  02-20-2016, 09:50 PM | #24 | 
| Junior Member  Posts: 4 Karma: 10 Join Date: Jan 2016 Device: Moon+ Pro 3.4.1 with Calibre Comp. on tablet; Calibre 2.49.0 on PC | 
			
			Just fix the CSS. CSS is easier than trying to fix all the in-line HTML. One change in the CSS, and everything is done. Now here's MY problem. How do I get rid of blank lines in code view? I don't want them and don't need them, but the ebooks I edit seem bound and determined to put a blank line between each paragraph in code view. Very annoying. | 
|   |   | 
|  02-20-2016, 11:34 PM | #25 | 
| A Hairy Wizard            Posts: 3,395 Karma: 20212733 Join Date: Dec 2012 Location: Charleston, SC today Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire | 
			
			Hello Sinom Bre, Welcome to Mobile Read! This is a slightly old thread - almost 4 years old.  When you speak of blank lines between paragraphs in code view, do you mean an actual paragraph with an empty line, or just empty space? If it is empty space, then there is nothing you need to do. That space is there just to make it easy for the formatter (you) to differentiate the paragraphs. Blank space is not recognized by the renderer and condensed down to a single space within tags, and completely ignored outside of tags. If it is an actual paragraph tag with empty space in there, eg. <p> </p> (or something) then you can just use a search and replace to delete them. search: <p> </p> replace: "" (without the quotes) One bit of warning... sometimes those empty paragraphs are intentionally left in there to signify scene breaks...an extra space between one time/place and the next. So I would check to make sure they are not intended before deleting them. Cheers, edit: If you absolutely HAVE to get rid of the space between paragraphs then you can use a search/replace. eg: search: </p>\s*<p> (or something) replace: </p>\n<p> Just remember to disable the prettify code otherwise it will put spaces back in there. Last edited by Turtle91; 02-20-2016 at 11:38 PM. | 
|   |   | 
|  02-21-2016, 02:00 AM | #26 | |
| Grand Sorcerer            Posts: 28,880 Karma: 207000000 Join Date: Jan 2010 Device: Nexus 7, Kindle Fire HD | Quote: 
 With new epubs: upgrade to Sigil 0.9.2+, never use the Prettify Code feature. | |
|   |   | 
|  02-21-2016, 04:46 PM | #27 | 
| Resident Curmudgeon            Posts: 80,740 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | |
|   |   | 
|  02-21-2016, 06:23 PM | #28 | 
| Sigil Developer            Posts: 9,071 Karma: 6361556 Join Date: Nov 2009 Device: many | 
			
			It works just fine.  The issue is it puts back the blank lines (actually extra linefeed character) after every line, which is exactly what he wants to get rid of. KevinH | 
|   |   | 
|  02-21-2016, 06:45 PM | #29 | 
| Grand Sorcerer            Posts: 28,880 Karma: 207000000 Join Date: Jan 2010 Device: Nexus 7, Kindle Fire HD | 
			
			Like Kevin said, "of course it does." But Sinom Bre doesn't want the empty lines between elements in Code View that Prettify provides. So I was telling him how to achieve that. Prior to Sigil 0.9.2, he would just have to deal with it. Sigil 0.9.2 got rid of any automatic (and constant) Prettifying of code and made it a manual process that the user has to initiate. If he upgrades to the latest Sigil, he'll be able to format well-formed code pretty much any way he wants anyway and Sigil won't automatically Prettify it. | 
|   |   | 
|  09-04-2017, 10:48 PM | #30 | 
| Member  Posts: 23 Karma: 10 Join Date: Jan 2017 Location: West of Fort Worth, TX Device: Kindle Fire 7, 2015, Fire HD 8 2021 | 
			
			Thank you!  It worked great for me.  All 7 books I've converted from DOCX to EPUB in Calibre renders the html differently.  I can usually play with it and figure it out.  But not tonight.  I could get rid of the extra line by changing the html on the 'paragraph' above it, but that would change that one.  No combination would work, until I found your solution above.  Thanks!  Jim.
		 | 
|   |   | 
|  | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| blank lines between paragraphs | franklekens | Kobo Reader | 71 | 01-26-2015 12:52 PM | 
| Insert blank line between paragraphs - just body text? | kristalana | Conversion | 2 | 05-14-2014 11:08 AM | 
| Bullet - Remove blank line before and after | Kol | Sigil | 3 | 02-14-2014 06:55 AM | 
| Blank lines between paragraphs? | ascherjim | OpenInkpot | 30 | 12-03-2009 12:19 AM | 
| Removing blank lines between paragraphs? | corroonb | Workshop | 3 | 08-13-2009 04:23 PM |