Skip to content

Commit

Permalink
Added some needed comments to Fl_Help_View::format()
Browse files Browse the repository at this point in the history
to help this developer get his bearings..



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6776 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
erco77 committed Apr 22, 2009
1 parent 27a9be5 commit a8fdff5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Fl_Help_View.cxx
Expand Up @@ -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);

Expand Down Expand Up @@ -1231,6 +1233,7 @@ void Fl_Help_View::format() {

if (*ptr == '<')
{
// Handle html tags..
start = ptr;
ptr ++;

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit a8fdff5

Please sign in to comment.