fixes bug#367 (yay, that one was annoying):
authorivan <ivan>
Mon, 18 Mar 2002 17:50:54 +0000 (17:50 +0000)
committerivan <ivan>
Mon, 18 Mar 2002 17:50:54 +0000 (17:50 +0000)
in config editor, initial newlines in <textarea>s are lost.  even if
you didn't mean to edit them you remove that..

httemplate/config/config.cgi

index 5013de0..4f19ee9 100644 (file)
@@ -57,7 +57,7 @@ function SafeOnsubmit() {
           <% if ( $type eq '' ) { %>
             <font color="#ff0000">no type</font>
           <% } elsif ( $type eq 'textarea' ) { %>
-            <textarea name="<%= $i->key. $n %>" rows=5><%= join("\n", $conf->config($i->key) ) %></textarea>
+            <textarea name="<%= $i->key. $n %>" rows=5><%= "\n". join("\n", $conf->config($i->key) ) %></textarea>
           <% } elsif ( $type eq 'checkbox' ) { %>
             <input name="<%= $i->key. $n %>" type="checkbox" value="1"<%= $conf->exists($i->key) ? ' CHECKED' : '' %>>
           <% } elsif ( $type eq 'text' )  { %>