diff --git a/doc/config.html b/doc/config.html index 2c36c225..2a9b2a8a 100755 --- a/doc/config.html +++ b/doc/config.html @@ -2272,6 +2272,12 @@ Options Location = Main Building{a}, New Building{b}, Old Building{c} This specifies the number of text lines displayed in a summary page. Zero displays no text at all. The default is 3. +
  • + Summary line length = x
    + This specifies the number of charactes of the summary lines. After this + number of charactes, a line break is inserted in long lines to keep the + column width not too wide. The default is 40. +
  • Attachment lines = x
    This specifies the number of text lines displayed for ASCII attachments. diff --git a/src/elogd.c b/src/elogd.c index e180d2ef..343dabda 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -16767,7 +16767,7 @@ void display_line(LOGBOOK * lbs, int message_id, int number, char *mode, int exp int absolute_link) { char str[NAME_LENGTH], ref[256], *nowrap, sclass[80], format[256], file_name[MAX_PATH_LENGTH], *slist, - *svalue, comment[256]; + *svalue, comment[256], param[80]; char display[NAME_LENGTH], attr_icon[80]; int i, j, n, i_line, index, colspan, n_attachments, line_len, thumb_status, max_line_len, n_lines, max_n_lines; @@ -17333,7 +17333,10 @@ void display_line(LOGBOOK * lbs, int message_id, int number, char *mode, int exp if (strieq(mode, "Summary") && n_line > 0 && show_text) { rsprintf(""); - max_line_len = n_line >= 10 ? 140 : 40; + if (getcfg(lbs->name, "Summary line length", param, sizeof(param))) + max_line_len = atoi(param); + else + max_line_len = n_line >= 10 ? 140 : 40; for (i = i_line = line_len = 0; i < (int) sizeof(str) - 1; line_len++, i++) { str[i] = text[i]; if (line_break(text + i, encoding)) {