Thanks Hussein from your accurate and complete answer. So, the problem seems to be on MS Word "by design", maybe there is no simple way to properly paste the table text structure in a different way.
BTW, what's this "Smart Paste" feature you mention? (Sorry if I sound dumb, I'm not much of a Word user myself ;-)) On Fri, May 24, 2013 at 4:24 AM, Hussein Shafie <huss...@xmlmind.com> wrote: > 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. > > > > > -- Fabián Mandelbaum IS Engineer
-- XMLmind XML Editor Support List xmleditor-support@xmlmind.com http://www.xmlmind.com/mailman/listinfo/xmleditor-support