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:
Albrecht Schlosser
2016-05-31 11:32:25 +00:00
parent dc7d04c889
commit 5991a49ffe
+3 -3
View File
@@ -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);
}