]> git.joonet.de Git - adminer.git/commitdiff
Disable wrap in SQL textarea
authorJakub Vrana <jakub@vrana.cz>
Wed, 19 Jan 2011 12:56:40 +0000 (13:56 +0100)
committerJakub Vrana <jakub@vrana.cz>
Fri, 21 Jan 2011 10:23:30 +0000 (11:23 +0100)
adminer/include/editing.inc.php

index abc9a5dabe09a60741aab22d5622ac679bbcbbab..97936e3c94b42ed741cce7147595f87d13862219 100644 (file)
@@ -106,7 +106,7 @@ function referencable_primary($self) {
 * @return null
 */
 function textarea($name, $value, $rows = 10, $cols = 80) {
-       echo "<textarea name='$name' rows='$rows' cols='$cols' style='width: 98%;' spellcheck='false' onkeypress='return textareaKeypress(this, event, true);'>"; // spellcheck - not valid before HTML5
+       echo "<textarea name='$name' rows='$rows' cols='$cols' style='width: 98%;' spellcheck='false' wrap='off' onkeypress='return textareaKeypress(this, event, true);'>"; // spellcheck, wrap - not valid before HTML5
        if (is_array($value)) {
                foreach ($value as $val) { // not implode() to save memory
                        echo h($val) . ";\n\n\n"; // rtrim(, ';') would possibly damage DELIMITER