Word 2007 adding span when save as HTML filtered

D

DJ

When I save a document as HTMl filtered using Word 2007, <span
style='font-family:"Courier New"'> is being added to all of the lines. Is
there a way to prevent this from happenning?
 
D

DJ

I must clarify, the documents were originally created in Word 2003 and then
opened in Word 2007, then saved as type Web Page, Filtered. Then the
additional style='font-family:"Courier New"'> is being added in every line
of text.
 
B

Bob Buckland ?:-\)

Hi D.J.,

Were these .HTM files or .DOC files from Word 2003?

Is this just text, or numbered lists or ???

==============
I must clarify, the documents were originally created in Word 2003 and then
opened in Word 2007, then saved as type Web Page, Filtered. Then the
additional style='font-family:"Courier New"'> is being added in every line
of text. >>
--

Bob Buckland ?:)
MS Office System Products MVP

*Courtesy is not expensive and can pay big dividends*
 
D

DJ

It seems any .doc files that are even just text will end up with a span in
each line.
 
B

Bob Buckland ?:-\)

Hi D.J.,

Word uses 'span' to equal a 'text run' (a string of text/spaces/punctuation) that shares common characteristics of formatting.

You would generally see this where you have started a new paragraph (enter key). If you're doing that for each 'line' then you
would see a span control for each 'line' in Word 2000 or higher in a .HTM file.

For example if your line of text was
The quick brown fox jumps over the lazy dog.

Then the basic formatting in a Word produced .htm file would be something like this:

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'>The quick brown fox jumps over the lazy
dog.</span></font></p>

Keep in mind that the primary purpose of Word .htm files are to produce web documents that retain as much of the Word look as
possible when viewed in a web browser and to reassemble itself as a valid Word document, with no loss of Word content or format, if
the .htm document is then reopened in Word.

================
It seems any .doc files that are even just text will end up with a span in
each line. >>
--

Bob Buckland ?:)
MS Office System Products MVP

*Courtesy is not expensive and can pay big dividends*
 
Top