PeterPanino / thtmlviewer

Automatically exported from code.google.com/p/thtmlviewer
Other
0 stars 0 forks source link

THtmlViewer.CopyToClipboard, removes too much of the end of the HTML #382

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Which steps will reproduce the problem?
1.Enter some html, something like:

.....<table><tr><td><span>.....hello</span><br 
/></td></tr></table></body></html>

2. Select all text. Copy. Open MS Word. Paste into Word.

What is the expected output?

I would expect to see hello as the last text in the document.

What do you see instead?
hello is missing.

Unit: HtmlView
Method: THtmlViewer.CopyToClipboard

Lines: 
  {Also remove any tags on the end}
    HTML := BackupToContent;

What is the motivation for removing the end tags? Word seems to get confused by 
the missing end tags and clips content from the end.
Commenting out this line seems to fix the problem.

Which version of the product are you using?

11.4

Which compiler version are you using? 
XE 5

On which operating system?
Windows 7

Original issue reported on code.google.com by ellenjor...@gmail.com on 9 Oct 2014 at 11:52

GoogleCodeExporter commented 9 years ago
I cannot reproduce this issue with the attached file and FrameDem.exe of 
current Version 11.5 (XE5, Windows8, Word2002).

Original comment by OrphanCat on 14 Oct 2014 at 8:44

Attachments:

GoogleCodeExporter commented 9 years ago
Although I still cannot reproduce this issue I accept it as the old demo 
application HTMLEditor reveals erroneous selection handling.

Original comment by OrphanCat on 5 Jan 2015 at 1:58