summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2002-08-15 19:38:53 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2002-08-15 19:38:53 +0000
commitf9a0613202969a3661b8eade76302f0c1d13ea19 (patch)
tree0c1fc2f8fe8f0209307410432ab44f28a8e0c3b9 /src
parent6c3f9a03d157fdaa145ad0e99cef9344006ae180 (diff)
Fl_Help_View didn't support HTML comments.
Fl_Help_View didn't add the cellpadding when doing colspan's... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2588 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Help_View.cxx36
1 files changed, 32 insertions, 4 deletions
diff --git a/src/Fl_Help_View.cxx b/src/Fl_Help_View.cxx
index b1b8bcb92..623998808 100644
--- a/src/Fl_Help_View.cxx
+++ b/src/Fl_Help_View.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Help_View.cxx,v 1.1.2.38 2002/08/09 01:09:49 easysw Exp $"
+// "$Id: Fl_Help_View.cxx,v 1.1.2.39 2002/08/15 19:38:53 easysw Exp $"
//
// Fl_Help_View widget routines.
//
@@ -459,6 +459,20 @@ Fl_Help_View::draw()
if (*ptr == '<')
{
ptr ++;
+
+ if (strncmp(ptr, "!--", 3) == 0)
+ {
+ // Comment...
+ ptr += 3;
+ if ((ptr = strstr(ptr, "-->")) != NULL)
+ {
+ ptr += 3;
+ continue;
+ }
+ else
+ break;
+ }
+
while (*ptr && *ptr != '>' && !isspace(*ptr))
if (s < (buf + sizeof(buf) - 1))
*s++ = *ptr++;
@@ -930,6 +944,20 @@ Fl_Help_View::format()
{
start = ptr;
ptr ++;
+
+ if (strncmp(ptr, "!--", 3) == 0)
+ {
+ // Comment...
+ ptr += 3;
+ if ((ptr = strstr(ptr, "-->")) != NULL)
+ {
+ ptr += 3;
+ continue;
+ }
+ else
+ break;
+ }
+
while (*ptr && *ptr != '>' && !isspace(*ptr))
if (s < (buf + sizeof(buf) - 1))
*s++ = *ptr++;
@@ -1244,8 +1272,8 @@ Fl_Help_View::format()
else
colspan = 1;
- for (i = 0, ww = 0; i < colspan; i ++)
- ww += columns[column + i];
+ for (i = 0, ww = -6; i < colspan; i ++)
+ ww += columns[column + i] + 6;
if (block->end == block->start && nblocks_ > 1)
{
@@ -2648,5 +2676,5 @@ hscrollbar_callback(Fl_Widget *s, void *)
//
-// End of "$Id: Fl_Help_View.cxx,v 1.1.2.38 2002/08/09 01:09:49 easysw Exp $".
+// End of "$Id: Fl_Help_View.cxx,v 1.1.2.39 2002/08/15 19:38:53 easysw Exp $".
//