Thursday, May 03, 2007

Please Don't Use Microsoft Word To Compose Posts

Here's a sample of a Word document, copied directly into Post Editor.

Now is the time

For all good men

To come to the aid

Of their country.

The quick brown fox

Jumped over

The lazy dog.

The fountain pen

Of my aunt

Is filled with whiskey.



And this is what we now have. How can you edit this, when you need to? Auuugh.


Content composed in Microsoft Word, with lots of "<div> ... </div>", a "<div>" tags, may be a cause of problems with the New Post Editor 2008, and the "Read More" feature.


<p class="MsoNormal" style="text-align: center;" align="center">Now is the time</p> <p class="MsoNormal" style="text-align: center;" align="center">For all good men</p> <p class="MsoNormal" style="text-align: center;" align="center">To come to the aid</p> <p class="MsoNormal" style="text-align: center;" align="center">Of their country.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="text-align: center;" align="center"><i style="">The quick brown fox<o:p></o:p></i></p> <p class="MsoNormal" style="text-align: center;" align="center"><i style="">Jumped over<o:p></o:p></i></p> <p class="MsoNormal" style="text-align: center;" align="center"><i style="">The lazy dog.<o:p></o:p></i></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="text-align: center;" align="center"><u>The fountain pen<o:p></o:p></u></p> <p class="MsoNormal" style="text-align: center;" align="center"><u>Of my aunt<o:p></o:p></u></p> <p class="MsoNormal" style="text-align: center;" align="center"><u>Is filled with whiskey.<o:p></o:p></u></p>


Please, don't do that. This is simpler, believe me.
  1. Edit your post, in Compose mode.
  2. Select the entire post.
  3. Hit the "Remove formatting" button, in the toolbar.
  4. Reformat everything, as desired.
  5. Finally, Save the reformatted post.

Simpler, do a "Paste as plain text" (In Chrome, that's Ctrl+Shift+V.).

Of course, simpler still would be not using Word in the first place. But you can't always tell your friends what to do.

It's also possible that copying the Word content, directly into Post Editor, in Edit HTML mode, will strip away all gratuitous metaformatting. If you do this, though, be careful about "<" and ">" characters.

>> Top

11 comments:

James R Ament said...

Unfortunately, I have too many docs already in Word that I'd really like to publish on my blog! I did as you suggested - copied from Word to notepad to edit html. I cleaned it up (?), previewed it (it looked good), published and it all ran together in one big paragraph so I deleted it. My cleanup must have been shoddy - all I did was separate paragraphs, indent some quotes... made it look pretty. Can you give me some further explanation (details) on what must be done after copying from notepad to the post? Thanks!

John said...

AMEN!

Chuck said...

James,

It's easier to do than to explain.

You copy the content into Notepad, which strips out all of the formatting, leaving just text and some (not all) line breaks.

You recreate the needed line breaks in Notepad, then copy the entire contents into post editor compose.

You check the line and paragraph breaks. Then you add bold, italics, quotes, lists, and other content elements. It's a tedious process, but a lot more reliable than cleaning up artifacts from Microsoft Word.

James R Ament said...

Thank you. I'll give it a try and report back. I didn't clean it up in notepad first.

Kaia ((Alice-kun)) said...

unfortuantely this doesnt help me at all, as a mac user i dont have Notepad. is there another way to do this for mac users? because i really want to post. thanks for any help that anyone at all can give me.

Chuck said...

Hi Kaia,

I'm updating my post to reflect the ideas discussed in the Google Blogger Help: How Do I? thread.

The idea of copying directly from Word into Post Editor, in Edit HTML mode, sounds promising. Just be very careful, if the document has "<" and / or ">" characters!

MomsHugs..... (aka Eve) said...

Great! Can copy from MSWord in 2 ways without 2nd step using Notepad... yea!

1. copy into HTML directly then use Compose to format, or

2. copy into Compose, then select all, use Eraser to remove formatting & then format using Post options.

Ck in Preview. I didn't need to put linebreaks back in, but can't say that's true for you.

If the "undo/redo" option, I could compose directly in Post!

Thank you for helping!
Saved me a LOT of TIME!!!

Anna L. Walls said...

I've copied and pasted before without a problem but now that I know this I'll be more careful.

Jonny said...

Thank you so much for the help. This has sorted several problems I have been sweating blood over for months and it was an instant fix. You are now a very important bookmark! Thanks.

Amy said...

Hello, do you have to go back and take out all the editing from Word? Or if I go forward and do this, will they show back up?

Chuck Croll said...

Amy,

As you publish properly formatted posts, the new posts will show up on the main page together.

The posts which contain MSWord formatting will show up separately, under "Older Posts", until you edit and clean them.