diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2008-03-31 21:52:12 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2008-03-31 21:52:12 +0000 |
commit | 13b1c0d379b304fb86a8f20f7d984640ab73d81a (patch) | |
tree | 51057125845c7d73437d51387481826ed919d59f /desktop | |
parent | 421be3633ef998c299f82468b1c6d27bff7e2f32 (diff) | |
download | netsurf-13b1c0d379b304fb86a8f20f7d984640ab73d81a.tar.gz netsurf-13b1c0d379b304fb86a8f20f7d984640ab73d81a.tar.bz2 |
Suppress the box->space spaces after BRs in copied/saved text selections.
svn path=/trunk/netsurf/; revision=4066
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/selection.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop/selection.c b/desktop/selection.c index 34478a4b9..af72870bb 100644 --- a/desktop/selection.c +++ b/desktop/selection.c @@ -514,7 +514,8 @@ bool traverse_tree(struct box *box, unsigned start_idx, unsigned end_idx, } box_length = box->length + box->space; /* include trailing space */ - if (num_space == NUMBER_SPACE(box->byte_offset)) { + if (num_space == NUMBER_SPACE(box->byte_offset) && + box->type != BOX_BR) { unsigned start_offset; unsigned end_offset; |