![]() |
#1 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 306
Karma: 1010848
Join Date: Oct 2005
Device: Kobo Libra 2
|
no line breaks in code view
When I edit in Calibre there are no line breaks after the </p>. But if I open the file up in Sigil it shows the line breaks. Is there a way to make Calibre view code the way Sigil does? It's much easier to find things in the code.
Attached are two screenshots showing what I mean. |
![]() |
![]() |
![]() |
#2 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
calibre only does beautify html when you ask it to: http://manual.calibre-ebook.com/edit...utifying-files
Sigil by default does it automatically on File Open. |
![]() |
![]() |
![]() |
#3 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 306
Karma: 1010848
Join Date: Oct 2005
Device: Kobo Libra 2
|
Ah, thanks... problem solved!
|
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
could beautify all files please be made a user-preference, so that ,via preferences, it applies whenever a book is opened ?
I don't see how anyone could edit code without applying that first, as without it its almost impossible to see where tags begin & end! it's not an issue if a book as been previously opened & saved in sigil & then already beautified, but if edit book is to replace sigil.... |
![]() |
![]() |
![]() |
#5 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,914
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
There are many good reasons to NOT auto pretty. Getting a chance to repair Corruption being one. How lazy can you get: it is 1.5 clicks ![]() |
|
![]() |
![]() |
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
user-preference. why do the same key strokes 1000 times if you can have them automated..
anyway the book that triggered the request was a kindle best seller azw3 conversion. maybe all azw3 conversions look like s**t when converted & not prettified, or maybe it was just this one. or maybe you can read this as-is? </head> <body class="calibre"><div class="calibre2"><h3 id="c251292161" class="calibre5">Prologue</h3><p class="center">*</p><p class="center">Pudding Lane</p><p class="center"><em class="calibre6">1666</em></p><p class="center">*</p><p class="center"><em class="calibre6">It only took a spark to burn London to the ground.</em></p><p class="center">*</p><p class="calibre7">In the still of the early morning a hooded figure cast a burning torch through an open window of the bakery. No one saw him discard it amid bales of straw and bread baskets, and no one saw him take off again, in silence and in stealth, like a thief in the night.</p><p class="calibre7">Thomas Farynor, the king’s baker, slept fitfully in the rooms above the shop on Pudding lane, where below in the darkened cellars, illuminated only by candlelight and the glow of the coal fired ovens, his workmen kneaded dough for Sunday’s supply of bread to the palace. Bread fit for royalty!</p><p class="calibre7">*</p><p class="calibre7">Rising smoke crept through the cracks in the floor of the rooms above, until the household was awakened by the intensity of the choking fogginess burning the whites of their eyes. With rising panic, Thomas and his family escaped through a top floor window, and as the fumes chased them, desperate to consume them, they ran for their lives through London’s adjoining dry wood houses.</p><p Code:
</head> <body class="calibre"><div class="calibre2"><h3 id="c251292161" class="calibre5">Prologue</h3><p class="center">*</p><p class="center">Pudding Lane</p><p class="center"><em class="calibre6">1666</em></p><p class="center">*</p><p class="center"><em class="calibre6">It only took a spark to burn London to the ground.</em></p><p class="center">*</p><p class="calibre7">In the still of the early morning a hooded figure cast a burning torch through an open window of the bakery. No one saw him discard it amid bales of straw and bread baskets, and no one saw him take off again, in silence and in stealth, like a thief in the night.</p><p class="calibre7">Thomas Farynor, the king’s baker, slept fitfully in the rooms above the shop on Pudding lane, where below in the darkened cellars, illuminated only by candlelight and the glow of the coal fired ovens, his workmen kneaded dough for Sunday’s supply of bread to the palace. Bread fit for royalty!</p><p class="calibre7">*</p><p class="calibre7">Rising smoke crept through the cracks in the floor of the rooms above, until the household was awakened by the intensity of the choking fogginess burning the whites of their eyes. With rising panic, Thomas and his family escaped through a top floor window, and as the fumes chased them, desperate to consume them, they ran for their lives through London’s adjoining dry wood houses.</p><p |
![]() |
![]() |
![]() |
#7 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,644
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@cybmole - meanwhile, you could add a keyboard shortcut for Beautify (eg ctrl/alt/b)
If you happen to have a mouse with a extra buttons you could program one of them to send the ctrl/alt/b when pressed in a calibre ebook-editor window. BR |
![]() |
![]() |
![]() |
#8 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
It does this by prettifying by adding invisible characters such as the paragraph separator.
If you are working from a bad source, you may want to extract all the paragraph spacers, which will get rid of them in places you will likely not want them. It will also unprettify the text, which you can beautify again, by putting these markers where they make sense. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
replace in book view changes view to code view | cybmole | Sigil | 4 | 10-28-2012 01:20 PM |
Line breaks on Kindle, no line breaks on 4 PC | Siavahda | Kindle Formats | 0 | 10-20-2012 05:50 AM |
Sigil highlight Book View No Longer Shows in Code View | Themus | Sigil | 4 | 10-04-2012 07:54 PM |
quotes differences book view & code view | cybmole | Sigil | 13 | 03-29-2011 01:53 AM |
lock book view & code view windows into synch | cybmole | Sigil | 5 | 01-19-2011 10:30 PM |