Apache OpenOffice (AOO) Bugzilla – Issue 85007
Paste of large quantity of text fails after 65535 characters are pasted from clipboard
Last modified: 2008-01-06 06:17:22 UTC
Using Firefox, I copied a large quantity of text from a web page. When pasting it into Writer, only the first 65,535 characters (10,619 words) were pasted into Writer. These statistics are from Writer's Properties Statistics acquired by opening a blank document and pasting the text into the document. Attempts to position the curser immediately after the last character pasted and paste the remaining chunk of text fails to paste any characters. Moving the cursor in Writer to the line immediately following the last successfully pasted character permits the paste of the remaining characters. However, moving to the beginning character of the newly pasted section and hitting backspace to join the 2 pasted sections results in a major portion of the initially pasted section being deleted (suspect it is equal to the amount of the second pasted section but haven't validated the exact size). Steps to reproduce: 1. Using the text from the following web page, http://www.freshpatents.com/Bladeless-conical-radial-turbine-and-method-dt20050929ptan20050214109.php?type=description 2. Begin a copy where the patent is being described "[0001]..." ending with "###" near the bottom of the web page. 3. In a new document in Writer, paste the content you just copied from your browser into the new document. 4. You will notice that the content stops after "...interconnecting with existin" instead of the "###" that you highlighted from your browser. 5. Position your cursor directly after the last character "n". 6. In your browser locate the paragraph [0104] and find the spot where the last character was correctly carried over in the word "existing". Highlight the "g" through the "###", copy it to the clipboard. 7. Back in Writer, paste the contents. Result, no content pasted. 8. Move to the next line in Writer and paste. Result, content is pasted. 9. Move to the beginning of "g" that was at the beginning of your second paste and press backspace to join the 2 sections. Scroll up and notice that you have many missing paragraphs (indicated by the bracketed numbering of the paragraphs). Actual Results: You get a partially pasted set of text done in 2 steps with a portion of the initial pasted text removed -- you have lost much of what you would have expected to be preserved. Expected Results: Would have expected that all text from the clipboard would have been pasted in one chunk instead of 2 chunks. Would have expect to be able to begin the second paste immediately after the first pasted text. Would have expected the backspace to join the 2 pasted chunks instead of deleting or overlaying a major portion of the first chunk pasted.
jpbrown: The source is one giant paragraph using hard line breaks (in HTML a <br>) instead of paragraph breaks (in HTML <p>). Vote for issue 17171. Duplicate of issue 17171. Well-written bug report, though. :) *** This issue has been marked as a duplicate of 17171 ***
Closing duplicate. BTW, the workaround is to add some paragraph breaks by typing ENTER.