Unnecessary Spontaneous Span Codes
I haven't found anything on this problem in the forum, but Sigil sometimes creates unnecessary code that makes no difference in how the paragraph is rendered. More than anything, it's annoying because I want clean CSS.
Example:
<p class="first"><b style="font-size: 1em; line-height: 1.2em; text-indent: 0em;">EditorOne</b><span style="font-size: 1em; line-height: 1.2em; text-indent: 0em;"> is a freelance writer and editor . . .
Frequently, when I insert bold or italic codes in the CSS, it is transformed later to include the style definition for whatever style has been defined before--sometimes paragraphs before. Its presence or absence does not affect the way the paragraph looks. (I work in code, not page view.)
Example:
<p><span style="font-size: 1em; line-height: 1.2em; text-indent: 2em;">I also couldn’t hide the fact that I was living off of $40.00 per week for food and any other items I needed. Forty dollars is all that I had left each week after paying my monthly minimums on credit cards (used for medical co-pays, fees for diagnostic testing, and prescription co-pays) along with other required bills we all have (like car insurance, gas, rent). It was there, in Guam, that my friends (my budding</span> <i style="font-size: 1em; line-height: 1.2em; text-indent: 2em;">'ohana</i><span style="font-size: 1em; line-height: 1.2em; text-indent: 2em;">) would develop the idea of putting together a fundraiser with the hope of paying off a quickly growing mountain of medical debt. The work of this group of educational consultants on my behalf led to new hope in ways I could have never imagined.</span><br /></p>
These span styles restate the paragraph style from the stylesheet. I thought that span styles are used to interrupt the current applied style for an intentional change, not to simply restate the style for no purpose.
However, today I found a span style that actually changed the size of the font in a paragraph which was not used anywhere in the previous or following paragraphs.
These styles seem to appear spontaneously after I have closed and saved and then open. Can anyone shed light on this?
|