|  03-13-2021, 03:36 PM | #1 | 
| Member  Posts: 12 Karma: 10 Join Date: Mar 2016 Device: none | 
				
				Line break adds unwanted code, how to change this?
			 
			
			Inserting a line break adds this code:  <span style="font-size: 1.1em; line-height: 1.3em;"> Is there a way to stop this from happening? | 
|   |   | 
|  03-13-2021, 05:24 PM | #2 | 
| Sigil Developer            Posts: 9,070 Karma: 6361556 Join Date: Nov 2009 Device: many | 
			
			This can not be a recent version of Sigil as BookView was removed long ago. Is this PageEdit? If so what version? | 
|   |   | 
| Advert | |
|  | 
|  03-14-2021, 12:44 PM | #3 | 
| Member  Posts: 12 Karma: 10 Join Date: Mar 2016 Device: none | 
			
			Sigil Version 0.9.10
		 | 
|   |   | 
|  03-14-2021, 01:01 PM | #4 | 
| Member  Posts: 12 Karma: 10 Join Date: Mar 2016 Device: none | 
			
			Upon further investigation, this code is inserted not when I add a line break but when I delete a paragraph break.
		 | 
|   |   | 
|  03-14-2021, 01:04 PM | #5 | 
| Sigil Developer            Posts: 9,070 Karma: 6361556 Join Date: Nov 2009 Device: many | 
			
			Sorry, Sigil is now at version 1.4.3 and BookView has been removed because itis live html editing in a browser engine that can generate very poor code. My guess is you hit "return" inside or immediately after a span tag and that tag is being inherited by the new line. You might try cutting and pasting a what you want from some place else in the document, or better yet use CodeView and Preview to get what you want and stay away from BookView. | 
|   |   | 
| Advert | |
|  | 
|  03-14-2021, 01:07 PM | #6 | 
| Sigil Developer            Posts: 9,070 Karma: 6361556 Join Date: Nov 2009 Device: many | 
			
			Yes deleting the end of a paragraph will merge your current code into the code before it.  That is what live editing in html is doing.   If you care at all about code quality, stop using the now removed BookView and start learning html/css and do all editing in CodeView with Preview showing you in real time what your code is producing. And only if you must, use BookView for just final proofing and fixing small typos and things, use CodeView with Preview for all else. Last edited by KevinH; 03-14-2021 at 01:09 PM. | 
|   |   | 
|  03-14-2021, 01:11 PM | #7 | 
| Member  Posts: 12 Karma: 10 Join Date: Mar 2016 Device: none | 
			
			No, there is no span tag already in place, I am having to convert separate paragraphs created by calibre's conversion from pdf to line breaks which my client's writing style uses "generously".  In this case page view gives the better workflow even with this odd issue. Deleting the undesirable code is faster than doing the numerous necessary edits in code view. I was just hoping this was something I could change but if not I'll live with it. | 
|   |   | 
|  03-14-2021, 01:12 PM | #8 | 
| Sigil Developer            Posts: 9,070 Karma: 6361556 Join Date: Nov 2009 Device: many | 
			
			Once you do that you can then upgrade to the latest Sigil version that is still supported and add in the PageEdit app as a Preferred External Xhtml editor if you still want minor WYSIWYG editing capabilities.
		 | 
|   |   | 
|  03-14-2021, 01:18 PM | #9 | 
| Member  Posts: 12 Karma: 10 Join Date: Mar 2016 Device: none | 
			
			I'm well versed in html and css, but in this case page view is the more expedient workflow. This is not an issue with code merging into existing span tags, that I would have figured out on my own. I'm working with a conversion from pdf made with Calibre, which converts all line breaks (which my client's writing style uses generously) to paragraph breaks, so I must manually change them back to line breaks. fixing all of the wonky code with find & replace is still much faster than working in code. Thanks for your advice, though. | 
|   |   | 
|  03-14-2021, 01:37 PM | #10 | 
| Sigil Developer            Posts: 9,070 Karma: 6361556 Join Date: Nov 2009 Device: many | 
			
			You do know with Preview open beside CodeView, you can click in Preview and CodeView will sync to the closest point it can and Visa-Versa.   This makes it easy to see where insertions or deletions should be made by scrolling in Preview and then clicking to sync CodeView location and make the changes there.,  And Find & Replace works just fine with CodeView.
		 | 
|   |   | 
|  03-14-2021, 01:40 PM | #11 | 
| Member  Posts: 12 Karma: 10 Join Date: Mar 2016 Device: none | 
			
			No, I didn't know about preview at all. I'll take a look at that, thanks.
		 | 
|   |   | 
|  03-14-2021, 01:45 PM | #12 | 
| Sigil Developer            Posts: 9,070 Karma: 6361556 Join Date: Nov 2009 Device: many | 
			
			Use Sigils View menu to show and hide Preview.  You can of course detach the Preview dockwidget and move it to a second monitor if one is available and of course resize it at will.  Preview will auto reload as you type in CodeView.
		 | 
|   |   | 
|  03-14-2021, 04:22 PM | #13 | |
| null operator (he/him)            Posts: 22,010 Karma: 30277294 Join Date: Mar 2012 Location: Sydney Australia Device: none | Quote: 
 BR | |
|   |   | 
|  03-14-2021, 04:40 PM | #14 | 
| Member  Posts: 12 Karma: 10 Join Date: Mar 2016 Device: none | 
			
			Agreed, it does make for a lot of extra work but apparently it's all he has. Either his original word files are lost or he can't be bothered to locate them.
		 | 
|   |   | 
|  03-14-2021, 08:32 PM | #15 | |
| Wizard            Posts: 2,306 Karma: 13057279 Join Date: Jul 2012 Device: Kobo Forma, Nook | Quote: 
 Code: this is an example poem that ends like this. Code: <p>this is an example poem that ends like this.</p> Code: <p>this is an<br/> example poem<br/> that ends like this.</p> 1. Right-Click the book > Convert books > Convert individually. 2. Under "PDF Input", there's a "Line un-wrapping factor". You'll want to mess with that number. That tells Calibre how strongly it will try to put lines back together. | |
|   |   | 
|  | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| EPUB>PDF conversion adds unwanted margins | Micelement | Conversion | 1 | 10-15-2020 06:56 AM | 
| Unwanted Para Break | Paxman53 | Sigil | 6 | 02-07-2012 11:25 AM | 
| unwanted page break | photoluminations | Conversion | 1 | 09-28-2011 08:11 PM | 
| unwanted extra chapter break | alansplace | Conversion | 5 | 07-05-2011 12:00 PM | 
| epub - unwanted page break after image | mrmikel | Calibre | 5 | 07-10-2009 07:35 AM |