1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-30 03:26:23 -04:00

Bug 947, set_hline: Respect wrap_nbsp also if !part->document.

[ Backported from commit ce05aa1f37 in ELinks
  0.12.GIT.  The earlier commit 0b7a56f89a
  changes the CONFIG_UTF8 variant of set_hline, and that does not exist in
  ELinks 0.11.  --KON ]
This commit is contained in:
Kalle Olavi Niemitalo 2007-04-26 23:46:03 +03:00 committed by Kalle Olavi Niemitalo
parent a7980fcffc
commit 612311ffb4

View File

@ -438,7 +438,11 @@ set_hline(struct html_context *html_context, unsigned char *chars, int charslen,
}
} else {
for (; charslen > 0; charslen--, x++, chars++) {
part->spaces[x] = (*chars == ' ');
if (*chars == NBSP_CHAR) {
part->spaces[x] = html_context->options->wrap_nbsp;
} else {
part->spaces[x] = (*chars == ' ');
}
}
}
}