-
Notifications
You must be signed in to change notification settings - Fork 38.5k
First new line character is removed when use <form:textarea> tag [SPR-13503] #18081
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Kazuki Shimizu commented I added the repro project. |
Kazuki Shimizu commented Hi Brian Clozel, What status is this issue ? |
Brian Clozel commented This fix adds a newline within textarea tags, since it seems to be part of the HTML 4 spec and browsers behavior. Thanks for this report! |
Kazuki Shimizu commented Brian Clozel, Thanks for resolving this. I will try it using 4.3.0-BUUILD-SUNAPSHOT at later. |
Kazuki Shimizu commented Hi Brian Clozel, I think this issue should be resolved on FreeMarker and Velocity macro. How do you think ? |
Kazuki Shimizu commented Hi Brian Clozel , I've submit the Pull Request for FreeMarker and Velocity macro. |
Brian Clozel commented Thanks Kazuki Shimizu! |
Kazuki Shimizu commented Hi Brian Clozel, I've confirmed that resolved this issue using FreeMarker !! |
Kazuki Shimizu opened SPR-13503 and commented
When first character of input value is new line character,
<form:textarea>
is output the HTML as follow:e.g.) input value at textarea is
"<CRLF>input value"
When render the above HTML on Web Browser(Chrome, Firefox, Safari, IE ...), first new line character is removed from User Interface.
On an Web Browser,
"<CRLF>input value"
is render same with"input value"
(without <CRLF>).Probably,
<form:textarea>
tag should be output the HTML as follow:(Append new line character after
<textarea>
start tag)Affects: 4.2.1
Referenced from: commits 311d4c9, 8994498, 9b20231, 44c3212, 2267b14, b88c399
The text was updated successfully, but these errors were encountered: