mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Remove hard wraps for textarea in non-plain mode
SVN revision: 1380
This commit is contained in:
parent
f9ba196640
commit
06e8ab658c
14
src/elogd.c
14
src/elogd.c
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.666 2005/05/17 11:26:14 ritt
|
||||||
|
Remove hard wraps for textarea in non-plain mode
|
||||||
|
|
||||||
Revision 1.665 2005/05/17 11:21:16 ritt
|
Revision 1.665 2005/05/17 11:21:16 ritt
|
||||||
Added strnieq()
|
Added strnieq()
|
||||||
|
|
||||||
@ -9756,7 +9759,7 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
|||||||
width = atoi(str);
|
width = atoi(str);
|
||||||
|
|
||||||
/* increased width according to longest line */
|
/* increased width according to longest line */
|
||||||
if (message_id) {
|
if (message_id && enc_selected == 1) {
|
||||||
p = text;
|
p = text;
|
||||||
do {
|
do {
|
||||||
pend = strchr(p, '\n');
|
pend = strchr(p, '\n');
|
||||||
@ -9822,8 +9825,13 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
|||||||
else
|
else
|
||||||
strcpy(str, "");
|
strcpy(str, "");
|
||||||
|
|
||||||
rsprintf
|
if (enc_selected == 1)
|
||||||
("<textarea rows=%d cols=%d wrap=hard %s name=\"Text\" onChange=\"mod();\">", height, width, str);
|
/* use hard wrapping only for plain text */
|
||||||
|
rsprintf("<textarea rows=%d cols=%d wrap=hard %s name=\"Text\" onChange=\"mod();\">",
|
||||||
|
height, width, str);
|
||||||
|
else
|
||||||
|
rsprintf("<textarea rows=%d cols=%d %s name=\"Text\" onChange=\"mod();\">",
|
||||||
|
height, width, str);
|
||||||
|
|
||||||
if (bedit) {
|
if (bedit) {
|
||||||
if (!preset_text) {
|
if (!preset_text) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user