[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
insertion of linefeeds when editing multitext fields
From: |
Dirk Schenkewitz |
Subject: |
insertion of linefeeds when editing multitext fields |
Date: |
Wed, 16 Oct 2002 17:31:29 +0200 |
There was a complaint that there was no automatic insertion of
linefeeds when entering or changing text in a multitext field.
Because not everyone (including me, *sigh*) might like the new
behavior, I made a change to gnatsweb.pl (see attached patch)
which goes with the following additional line somewhere in
gnatsweb-site.pl:
$wrap_mode = 'hard'; # possible values: 'off', 'hard', 'soft'
happy coding - I'm glad that there is a new maintainer for gnats!
dirk
--
Dirk Schenkewitz
InterFace AG fon: +49 (0)89 / 610 49 - 126
Leipziger Str. 16 fax: +49 (0)89 / 610 49 - 83
D-82008 Unterhaching
http://www.interface-ag.de mailto:address@hidden
--- gnatsweb.pl.orig Wed Oct 16 16:55:44 2002
+++ gnatsweb.pl Wed Oct 16 16:33:23 2002
@@ -37,7 +37,7 @@
$scrolling_menu_default_size $site_background
$use_temp_db_prefs_cookie $global_cookie_expires $global_cookie_path
$textwidth $site_allow_remote_debug $attachment_delimiter
-$gnats_info_top %site_pr_submission_address $VERSION);
+$wrap_mode $gnats_info_top %site_pr_submission_address $VERSION);
# dynamic configuration switches, set during initial gnatsd
# communication and general setup
@@ -95,6 +95,7 @@
# Info about your gnats host.
$site_gnats_host = 'localhost';
$site_gnats_port = 1529;
+$wrap_mode = 'off';
# is your installation of gnatsweb set up with server authentication?
# if you want to set up a more tightly secured installation, you can
@@ -1064,7 +1065,8 @@
print $q->textarea(-name=>$_,
-cols=>$textwidth,
-rows=>$rows,
- -default=>$default),
+ -default=>$default,
+ -wrap=>$wrap_mode),
"</td>\n</tr>\n";
# Create file upload button after Description.
if (/Description/)
@@ -1558,7 +1560,8 @@
print $q->textarea(-name=>$_,
-cols=>$textwidth,
-rows=>$rows,
- -default=>$fields{$_}),
+ -default=>$fields{$_},
+ -wrap=>$wrap_mode),
"</td>\n</tr>\n";
# Print attachments after Description.
print_attachments(\%fields, 'edit') if /Description/;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- insertion of linefeeds when editing multitext fields,
Dirk Schenkewitz <=