Preserving div formatting in copy & paste


#1

When copying text content from text layer built by Mozilla’s pdf.js viewer (demo) into Atom, all formatting is lost.

Essentially the layer is a collection of consecutive divs inserted with text. Somehow after copying the text into a TextEditor, contents in different div elements aggregate into one single line. Any ideas how such things would happen?