I have a web app with lots of text.
It uses indentation on most of its contents, which is important for the users who read it.
For simplicity, let's say this is the code:
<div style="margin-left:40px;">
<div>One</div>
<div>
Two
<div style="margin-left:40px;">
<div>i</div>
<div>ii</div>
<div>iii</div>
</div>
</div>
<div>
Three
<div style="margin-left:40px;">
<div>A</div>
<div>B</div>
<div>
C
<div style="margin-left:40px;">
<div>x</div>
<div>y</div>
<div>z</div>
</div>
</div>
<div>D</div>
</div>
</div>
<div>Four</div>
</div>
The problem is that whenever the user copy portions of it (or it entirely) and paste it into MS Word (docx) the indentation is lost. I need to find a way to keep the indentation for this case use.
I tried with margin and padding, the same thing happens.
Any suggestions?
The strange thing is that I tried with ul-li (and ol-li) instead of divs, and it works: the indentation is kept after pasting into Word.
But I cannot use ul/ol because it automatically adds the bullets/numbers once pasted into the Word document, no matter what style I put from CSS (list-style-type:none).