mirror of
https://github.com/fltk/fltk.git
synced 2026-05-24 16:36:37 +08:00
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:
@@ -1138,11 +1138,13 @@ void Fl_Help_View::format() {
|
|||||||
linkdest[0] = '\0';
|
linkdest[0] = '\0';
|
||||||
table_offset = 0;
|
table_offset = 0;
|
||||||
|
|
||||||
|
// Html text character loop
|
||||||
for (ptr = value_, s = buf; *ptr;)
|
for (ptr = value_, s = buf; *ptr;)
|
||||||
{
|
{
|
||||||
|
// End of word?
|
||||||
if ((*ptr == '<' || isspace((*ptr)&255)) && s > buf)
|
if ((*ptr == '<' || isspace((*ptr)&255)) && s > buf)
|
||||||
{
|
{
|
||||||
// Get width...
|
// Get width of word parsed so far...
|
||||||
*s = '\0';
|
*s = '\0';
|
||||||
ww = (int)fl_width(buf);
|
ww = (int)fl_width(buf);
|
||||||
|
|
||||||
@@ -1231,6 +1233,7 @@ void Fl_Help_View::format() {
|
|||||||
|
|
||||||
if (*ptr == '<')
|
if (*ptr == '<')
|
||||||
{
|
{
|
||||||
|
// Handle html tags..
|
||||||
start = ptr;
|
start = ptr;
|
||||||
ptr ++;
|
ptr ++;
|
||||||
|
|
||||||
@@ -1747,6 +1750,7 @@ void Fl_Help_View::format() {
|
|||||||
}
|
}
|
||||||
else if (*ptr == '&' && s < (buf + sizeof(buf) - 1))
|
else if (*ptr == '&' && s < (buf + sizeof(buf) - 1))
|
||||||
{
|
{
|
||||||
|
// Handle html '&' codes, eg. "&"
|
||||||
ptr ++;
|
ptr ++;
|
||||||
|
|
||||||
int qch = quote_char(ptr);
|
int qch = quote_char(ptr);
|
||||||
|
|||||||
Reference in New Issue
Block a user