0

Hi all!

I'm copying a poem from MS word ans pasting into a html text area. However only the first line of the text has a tab between the beginning of the phrase and the margin. All the subsequent phrases lose formatting and stay right next to left margin. It happens the same if I paste it into notepad or other text editor..,

Does anybody has some idea how to fix this?


Thanks in advance.

Kind Regards.

2
Contributors
6
Replies
7
Views
5 Years
Discussion Span
Last Post by peter_budo
0

You did not provide any code any above description is not helpful.
Are you reading word documents through some coding process or you just manually copy and paste from Word document to JSP expecting formatting will kept?

0

I am manually copying from a ms word 2010 text and pasting it into a html text area.

Example:

source text in word:

                                Example example example
                                Example example example
                                Example example example
                                Example example example

                       

Pasted text in html text area:

                                Example example example
Example example example
Example example example
Example example example
0

You will need to apply formatting manually. Try to apply <pre></pre> around copied text if that solve your problem

0

the difficulty is that the tabs are lost when pasted from word into the html textarea..

0

the difficulty is that the tabs are lost when pasted from word into the html textarea..

Yes because formatting applies to only selected Microsoft products. The only thing you may possibly do is to write a CSS element, lets call it poem, on the each line you will need to place <br/> and once poem read from textarea apply CSS poem style to it.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.