On 05/23/2013 11:38 PM, Fabián Mandelbaum wrote:
I've created a simple MS Word document (attached) containing nothing but a 2x2 table with the 4th cell having content with a newline on it. If I've select the whole table, copy it, then go to XXE, and try to paste it on my DocBook5 document using the DocBook > Paste As > table menu, I get a table with 5 cells instead of a 4. The cell having the content with a newline on it creates a 3rd row with a single cell on it, thus 'breaking' the original table.
What does XXE is 100% correct. The table created by XXE faithfully reflects the plain text copied by MS Word to the clipboard.
See attached screenshots.Please note that "Paste As > table" aims to be useful with MS *Excel* (and other spreadsheets such as Calc) and not with MS Word.
Now that XXE 5.6 gets the whole MS Word code with formatting from the clipboard would this be easily fixable?
No. Currently XXE gets only "text/plain" or "application/xml" from the clipboard.
Is this a known-issue you are working on for the next XXE version?
No. "Paste As > table" has no bugs and hence, does not need to be fixed. It's just too simple to be useful in your case. You need the so-called "Smart Paste" feature.
Do I have to write a custom command, or use existing ones, to circumvent this issue?
There is no way to circumvent this issue as long as XXE parses the plain text copied to the clipboard.
<<attachment: text_contained_in_clipboard.png>>
<<attachment: table_created_by_xxe.png>>
-- XMLmind XML Editor Support List xmleditor-support@xmlmind.com http://www.xmlmind.com/mailman/listinfo/xmleditor-support