summaryrefslogtreecommitdiff
path: root/src/Fl_Help_View.cxx
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2009-04-22 09:02:13 +0000
committerGreg Ercolano <erco@seriss.com>2009-04-22 09:02:13 +0000
commita8fdff552b1c59cd2f12541f92c6db249a9fa02e (patch)
tree81f6f62338398db152dbffbd8d0307b446c4da88 /src/Fl_Help_View.cxx
parent27a9be5f700bc794d97980ba67a9eeabf6c12748 (diff)
Added some needed comments to Fl_Help_View::format()
to help this developer get his bearings.. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6776 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Help_View.cxx')
-rw-r--r--src/Fl_Help_View.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Fl_Help_View.cxx b/src/Fl_Help_View.cxx
index 302fc61c9..fe841b88e 100644
--- a/src/Fl_Help_View.cxx
+++ b/src/Fl_Help_View.cxx
@@ -1138,11 +1138,13 @@ void Fl_Help_View::format() {
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 @@ void Fl_Help_View::format() {
if (*ptr == '<')
{
+ // Handle html tags..
start = ptr;
ptr ++;
@@ -1747,6 +1750,7 @@ void Fl_Help_View::format() {
}
else if (*ptr == '&' && s < (buf + sizeof(buf) - 1))
{
+ // Handle html '&' codes, eg. "&amp;"
ptr ++;
int qch = quote_char(ptr);