PDA

View Full Version : Copying from Word to FrontPage creates unneeded tags


shirleymck
09-04-2002, 02:11 PM
When I copy text from Word to FrontPage, it generates a lot of extra unneeded icons, like this:

<p class="MsoPlainText" style="margin-left:.25in"><span style="mso-fareast-font-family:
&quot;MS Mincho&quot;">This morning early I was out walking up and down
Washington Street over here past a couple of other people out
walking, and this one guy said, hello, good morning. What did I
do?<span style="mso-spacerun: yes">&nbsp; </span>I said, hello. It
is a great morning. I responded!<span style="mso-spacerun:
yes">&nbsp; </span>Friday, when I was walking into the funeral home, a couple of
ladies in front of me, they missed the curb along the sidewalk,
and one of them fell on the sidewalk. I helped her up. I helped
her get in the building. Made sure the people that worked there
knew what was going on. I chose to respond. In all the scenarios,
you wouldn't have done any different. You would have done the same
thing. It is amazing - a knock on the door, phone calls, maybe
somebody saying hi, how are you doing, e-mail, maybe somebody
falls down, you help them up. We know how to respond, we really
do. <o:p>
</o:p>
</span></p>

I removed the font and margin references and got the page to look like I want, but those <span> and <o:p> tags are just using up space. (I'm not sure what <o:p> is.)

If you want to see the page, it is http://www.westernoaks.org/ms020901.htm

Any thoughts?

Shirley

P.S. I didn't type a smiley face; I typed o, then colon, then p.

redhead
09-04-2002, 02:19 PM
this is because when you copy from Word it keeps all the formatting, so all the fonts, sizes, and things get copied, the odd tags is frontpage trying to keep it how it was copied but put it into html.

my advice would be paste in into Notepad first then copy and paste that into Frontpage.

the <o:p> tag is not valid in HTML 4.01 to my knowledge.

whackaxe
09-04-2002, 02:31 PM
front page leaves a trail of script, &nb sp; and oter such tags in its wake

goto www.jlad.co.uk then click on projects file and view the source code. and now imagine that if there wasnt the fat comment tag where i stated that editing is below. how the hell would you like to find your way around that. i took me forever to edit that site. my advice: drop front page and go for hand coding everything!!! meaning learning languages but thats all for the better :D

applesauce
09-04-2002, 02:45 PM
when copying into lots of programs, if you either right click or use the edit menu, use "paste special" instead of paste, and select "unformatted text". this has worked for me.

shirleymck
09-04-2002, 05:12 PM
Thanks for the Paste Special suggestion. It had a choice called "Normal Paragraphs". It works great!

I had already tried pasting into Notepad first. It was certainly the next best choice. However, each paragraph was stretched across a single line in the HTML code, and it used <br> tags instead of <p> breaks. It seemed a little strange.

Thanks to everybody for your suggestions.