Often when you are pasting in content from html sources you end up with a lot of tabular text which is more than just a paragraph mark between the paragraphs. The code you have shown won't merge content in table cells or floating text boxes. Also some of the code only works on selected text - which presupposes you have actually selected the text before running that code.
Obviously, we can't see what content you are actually trying to run this code on. Perhaps it would be clearer if you attached a document that contains the sort of content you want the code to work on.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
|