Re: Word paste adding extra lines

  •  02-16-2006, 11:40 AM

    Re: Word paste adding extra lines

    Thanks for the response.

    As far as I can see, the problem is caused by the fact that I get a non-breaking space from Word between the H1 and the first paragraph. This causes your editor to add a <p>&nbsp;</p> when cleaning.

    However, Word should not have added this nbsp, since it already puts the paragraph between <p> - which is sufficient.

    I can see that it does make sense to do this when a user had added more lines between the H1 and the paragraph. Then the <p>&nbsp;</P> should be there to cater for the extra line.

    In short, when converting from Word, in a sequence of <p>&nbsp;</p> the editor should always subtract 1 from the total number of pairs to get a correct result. Agree?

    The behaviour I saw when switching between views is probably caused by the fact that the html is corrected by your editor when leaving html view. It then apparently replaces <p>&nbsp;</p> by <p></p>, which is not visible in normal view (html doesn't do anything with such a pair). Correct?

    If you agree with the analysis, can you solve the problem of the "extra" <p>&nbsp;</p>? Or can we do that ourselves somewhere in the configuration?
     
     
View Complete Thread