I am working on parsing clipboard data in a web app to paste into various formats. In order to correctly determine how to parse the data, I need to see exactly what is in the clipboard. My current best approach is pasting into vim with set list
and various characters to look at whitespace, however this is still missing some information.
In this example I two excel tables, where one has a merged cell in the middle.
Both of these copy the same data into the clipboard (according to pasting into (vim symbols represent whitespace))
Yet when pasting into google sheets it knows to preserve the merged cell (similar to my use case). What is this magic?