Roxen.git/
server/
etc/
modules/
Variable.pmod/
module.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2022-08-23
2022-08-23 07:57:50 by Jonas Walldén <jonasw@roxen.com>
6b88f2931e2bd1beec1b6f2204b336b4d92dd68e (
7
lines) (+
6
/-
1
)
[
Show
|
Annotate
]
Branch:
7.0
Add control over Variable.Text line wrap behavior.
1085:
int rows = 10; //! The height of the textarea
+
bool wrap = false;
+
//! Allow text wrapping
+
string diff( int render ) { switch( render )
1111:
string render_form( RequestID id, void|mapping additional_args ) {
-
return "<textarea cols='"+cols+"' rows='"+rows+"' name='"+path()+"' wrap='off'>"
+
return "<textarea cols='"+cols+"' rows='"+rows+"' name='"+path()+"'
" +
+
(
wrap
? "style
='
word-break: break-all'" : "wrap='
off'
") + "
>"
+ Roxen.html_encode_string( query() || "" ) + "</textarea>"; }