It always pastes the last copied text that was in clipboard, no matter what I copy and no matter whether I use hotkeys or do it through the menu
Comment 21 by jianli@chromium.org, Mar 02, 2010
In short, OpenOffice writer does not generate the correct CF_HTML format to put into the clipboard.
According to HTML Clipboard Format (http://msdn.microsoft.com/en-us/library/ms649015(VS.85).aspx), the HTML comments <!--
StartFragment--> and <!--EndFragment--> need to be present in the data:
The fragment should be preceded and followed by the HTML comments <!--StartFragment--> and <!--EndFragment--> (no space allowed
between the !-- and the text) to conveniently indicate where the fragment starts and ends. Thus the start and end of the fragment are
indicated by the presence of these comments and by StartFragment and EndFragment byte counts in the description. Tools are expected to
produce this information. This redundancy has been introduced to be able to rapidly find the start of the fragment (from the byte
count) and mark the position of the fragment directly in the HTML tree.
However, OpenOffice writer does not respect this and produce the HTML format data without the required comments, like the following:
Version:1.0
StartHTML:0000000168
EndHTML:0000000656
StartFragment:0000000591
EndFragment:0000000639
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
...
</HEAD>
<BODY LANG="en-US" DIR="LTR">
<P STYLE="margin-bottom: 0in"><B>Foo</B></P>
</BODY>
</HTML>
We can rely on StartFragment and EndFragment to find the html text, as a fallback. How do you think?
Arfa wrote:What I normally do is end OO through Task Manager, and restart it again. Then, copy/pasting works again.
Librarian wrote:I have seen your replies and even your bug report
Librarian wrote:It is also noteworthy that I had the 'intermittent' problem of it pasting the last item from the clipboard into Oo Writer, too - and it has now progressed to the point where it just doesn't function at all.
Users browsing this forum: No registered users and 5 guests