mirror of
https://github.com/fltk/fltk.git
synced 2026-05-25 09:17:49 +08:00
Hopefully final fix of HTML entity handling
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11764 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -3098,8 +3098,8 @@ void Fl_Help_View::end_selection(int clipboard)
|
||||
}
|
||||
int n = (int) (s2-value_);
|
||||
if (n>selection_first && n<=selection_last) {
|
||||
if (!pre && isspace(c)) c = ' ';
|
||||
if (p!=' ' || c!=' ') {
|
||||
if (!pre && c < 256 && isspace(c)) c = ' ';
|
||||
if (p != ' ' || c != ' ') {
|
||||
if (s2 != s) { // c was an HTML entity
|
||||
d += fl_utf8encode(c, d);
|
||||
}
|
||||
@@ -3111,7 +3111,7 @@ void Fl_Help_View::end_selection(int clipboard)
|
||||
}
|
||||
*d = 0;
|
||||
Fl::copy(txt, (int) strlen(txt), clipboard);
|
||||
//printf("copy [%s]\n", txt);
|
||||
// printf("copy [%s]\n", txt);
|
||||
free(txt);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user