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
This commit is contained in:
Greg Ercolano 2009-04-22 09:02:13 +00:00
parent 27a9be5f70
commit a8fdff552b

View File

@ -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);