![]() |
#1 |
Member
![]() Posts: 11
Karma: 10
Join Date: Jan 2016
Device: none
|
Cleaning MSo in Sigil
Hi All,
I've been formatting a book in Sigil (and learning Sigil, as well as CSS, as I go), and I have a bunch of these statements in all of my blank spaces: <p align="center" class="MsoNormal" style="text-align:center;line-height:200%"> </p> I know they're holdovers from the Word Doc I dropped in Sigil, but can I wipe them out if they have no content? Do I need to have anything in my stylesheets to replace them for the blank areas of my document? Any help would be appreciated. ![]() |
![]() |
![]() |
![]() |
#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)
|
It looks like that is just being used for e.g. scenebreaks.
I use the following generic scenebreak code: CSS: Code:
.scenebreak { text-align: center; text-indent: 0%; margin: 1em; } Code:
<p class="scenebreak">* * *</p> I prefer my scenebreaks to be semantic elements for future-proofing and during conversions. ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,359
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I would take the same basic approach eschwartz described.
|
![]() |
![]() |
![]() |
#4 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,912
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
eschwartz stole my (code) clips
![]() |
![]() |
![]() |
![]() |
#5 |
Member
![]() Posts: 11
Karma: 10
Join Date: Jan 2016
Device: none
|
Thanks. Actually, this is the code defining scene breaks in the main document:
<p align="center" class="MsoNormal" style="text-align:center;line-height:200%">#</p> Of course, this is the original code from the htm converted document. The code I described above: <p align="center" class="MsoNormal" style="text-align:center;line-height:200%"> </p> ...is mostly at the end of chapters, or fills out the rest of the page in the front and back sections. I've removed some of them with no noticeable effect to the body, but I wondered if I needed anything after the final line in a section? I'm still developing and testing my stylesheets, but noticed some of the carryover code was taking precedence so I was trying to clean it down a bit before I linked all my CSS to the appropriate sections. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
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)
|
If all it is doing is leaving a blank line at the end of an HTML file, you can delete it even without replacing it.
![]() @theducks -- parallel evolution. ![]() |
![]() |
![]() |
![]() |
#7 |
Member
![]() Posts: 11
Karma: 10
Join Date: Jan 2016
Device: none
|
:Thanks, eschwartz!
![]() |
![]() |
![]() |
![]() |
#8 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
You could give my Word add-in a run. It will give you clean HTML code (instead of the Word nightmare) to work from.
|
![]() |
![]() |
![]() |
Tags |
css, sigil, tags |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sigil-0.8.900 released for testing - Wait for Sigil-0.8.901 | KevinH | Sigil | 106 | 10-04-2015 10:41 AM |
Sigil on Nook vs Sigil on Kobo vs Sigil on iBook | rosshalde | Sigil | 12 | 11-13-2014 09:34 AM |
cleaning up a word document in Sigil | BeccaPrice | Sigil | 9 | 10-08-2011 03:06 PM |
Stop Automatic Code cleaning in Sigil | ericp20 | Sigil | 11 | 05-27-2011 08:52 AM |
Automatic cleaning by Sigil | roger64 | Sigil | 7 | 03-18-2011 02:52 AM |