Author: greg.ercolano
Date: 2009-04-22 02:02:13 -0700 (Wed, 22 Apr 2009)
New Revision: 6776
Log:
Added some needed comments to Fl_Help_View::format()
to help this developer get his bearings..
Modified:
branches/branch-1.3/src/Fl_Help_View.cxx
Modified: branches/branch-1.3/src/Fl_Help_View.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Help_View.cxx 2009-04-22 08:45:15 UTC (rev
6775)
+++ branches/branch-1.3/src/Fl_Help_View.cxx 2009-04-22 09:02:13 UTC (rev
6776)
@@ -1138,11 +1138,13 @@
linkdest[0] = '\0';
table_offset = 0;
+ // Html text character loop
for (ptr = value_, s = buf; *ptr;)
{
+ // End of word?
if ((*ptr == '<' || isspace((*ptr)&255)) && s > buf)
{
- // Get width...
+ // Get width of word parsed so far...
*s = '\0';
ww = (int)fl_width(buf);
@@ -1231,6 +1233,7 @@
if (*ptr == '<')
{
+ // Handle html tags..
start = ptr;
ptr ++;
@@ -1747,6 +1750,7 @@
}
else if (*ptr == '&' && s < (buf + sizeof(buf) - 1))
{
+ // Handle html '&' codes, eg. "&"
ptr ++;
int qch = quote_char(ptr);
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit