diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1998-08-21 13:30:00 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1998-08-21 13:30:00 -0400 |
commit | 3c7cb4bbcd56c17e1abba05f20d001a2484d9919 (patch) | |
tree | 30f608a2a7c6355ee69d6b061ed3fd458010ad75 /src/GridText.c | |
parent | 0eae931d4f0fd1194dfcd978c3d94079b710923f (diff) | |
download | lynx-snapshots-3c7cb4bbcd56c17e1abba05f20d001a2484d9919.tar.gz |
snapshot of project "lynx", label v2-8-1dev_22
Diffstat (limited to 'src/GridText.c')
-rw-r--r-- | src/GridText.c | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/src/GridText.c b/src/GridText.c index a678ad48..b818730b 100644 --- a/src/GridText.c +++ b/src/GridText.c @@ -4644,14 +4644,13 @@ PUBLIC void print_wwwfile_to_fd ARGS2( */ for (i = 0; line->data[i] != '\0'; i++) { if (!IsSpecialAttrChar(line->data[i])) { - fputc(line->data[i],fp); + fputc(line->data[i], fp); } else if (line->data[i] == LY_SOFT_HYPHEN && line->data[i + 1] == '\0') { /* last char on line */ if (dump_output_immediately && LYRawMode && LYlowest_eightbit[current_char_set] <= 173 && - (current_char_set == 0 || - LYCharSet_UC[current_char_set].enc == UCT_ENC_8859 || + (LYCharSet_UC[current_char_set].enc == UCT_ENC_8859 || LYCharSet_UC[current_char_set].like8859 & UCT_R_8859SPECL)) { fputc(0xad, fp); /* the iso8859 byte for SHY */ @@ -4726,19 +4725,18 @@ PUBLIC void print_crawl_to_fd ARGS3( for (i = 0; line->data[i] != '\0'; i++) { if (!IsSpecialAttrChar(line->data[i])) { fputc(line->data[i], fp); - } else if (line->data[i] == LY_SOFT_HYPHEN && - line->data[i + 1] == '\0') { /* last char on line */ - if (dump_output_immediately && - LYRawMode && - LYlowest_eightbit[current_char_set] <= 173 && - (current_char_set == 0 || - LYCharSet_UC[current_char_set].enc == UCT_ENC_8859 || - LYCharSet_UC[current_char_set].like8859 & - UCT_R_8859SPECL)) { - fputc(0xad, fp); /* the iso8859 byte for SHY */ - } else { - fputc('-', fp); - } + } else if (line->data[i] == LY_SOFT_HYPHEN && + line->data[i + 1] == '\0') { /* last char on line */ + if (dump_output_immediately && + LYRawMode && + LYlowest_eightbit[current_char_set] <= 173 && + (LYCharSet_UC[current_char_set].enc == UCT_ENC_8859 || + LYCharSet_UC[current_char_set].like8859 & + UCT_R_8859SPECL)) { + fputc(0xad, fp); /* the iso8859 byte for SHY */ + } else { + fputc('-', fp); + } } } |