View Single Post
Old 12-22-2016, 07:40 AM   #11
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,635
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by JustinThought View Post
That sounds similar to a problem I was having, that I posted in another thread. What was happening was, Sigil was doing some housekeeping each time I saved, and placing a blank line before a certain section. This was code that wasn't inside a <p> tag, but instead in a <div>, but that div was way up on the page. I ended up just placing the errant code inside a dummy <div>, directly before and just after the section that was being spaced out, and it has taken care of the problem.

Any similarity to your code? Find the place where the blank areas are being made, clear them out, then repeatedly hit ctrl-s to save and see if it doesn't move down. If so, you're running up against the same problem. Use a <div> </div> to bracket that section, and it should go away--which may solve your other problem as well.
I was trying to remember this very incident, but couldn't find the thread. I knew it was reproduceable, but couldn't remember what we determined concerning its "fixability." Thanks for the reminder. I vaguely remember something about Prettify adding extra spacing to code that needed to be contained within block-level tags.

@O.P. I agree with Toxaris that pasting content into Sigil should be a last resort. If you have clean html you're happy with, import it.

Last edited by DiapDealer; 12-22-2016 at 07:44 AM.
DiapDealer is offline   Reply With Quote