mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
Bug 947, set_hline: Respect wrap_nbsp also if !part->document.
[ Backported from commitce05aa1f37
in ELinks 0.12.GIT. The earlier commit0b7a56f89a
changes the CONFIG_UTF8 variant of set_hline, and that does not exist in ELinks 0.11. --KON ]
This commit is contained in:
parent
a7980fcffc
commit
612311ffb4
@ -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 == ' ');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user