groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Groff] HTML output in Mozilla


From: Bruno Haible
Subject: [Groff] HTML output in Mozilla
Date: Mon, 9 Apr 2001 15:35:24 +0200 (CEST)

Hi,

The HTML output looks a little strange in Mozilla M18: Each of the tables has
a visible relief border of width 1. To make them disappear, it is necessary
to write
   frame="void"
instead of
   frame="none"
(This is also what the HTML reference says.)

But since the 'rules' and 'frame' attribute are only supported starting with
HTML 4.0, I think it cannot hurt to add "border=0", which is supported since
HTML 3.2 and which independently makes the border go away as well.


2001-04-08  Bruno Haible  <address@hidden>

        * src/devices/grohtml/html-text.cc (issue_table_begin): Set
        frame=void, not frame=none. Add border=0.

diff -r -c3 groff-current.orig/src/devices/grohtml/html-text.cc 
groff-current/src/devices/grohtml/html-text.cc
*** groff-current.orig/src/devices/grohtml/html-text.cc Mon Mar 19 16:33:03 2001
--- groff-current/src/devices/grohtml/html-text.cc      Sun Apr  8 19:17:21 2001
***************
*** 140,146 ****
      int width=current_indentation*100/linelength;
  
      if (width > 0) {
!       out->put_string("<table width=\"100%\" rules=\"none\" frame=\"none\"\n  
     cols=\"2\" cellspacing=\"0\" cellpadding=\"0\">").nl();
        out->put_string("<tr valign=\"top\" align=\"left\">").nl();
        if ((t->arg1 == 0) || (strcmp(t->arg1, "") == 0))
        out->put_string("<td 
width=\"").put_number(width).put_string("%\"></td>");
--- 140,146 ----
      int width=current_indentation*100/linelength;
  
      if (width > 0) {
!       out->put_string("<table width=\"100%\" border=0 rules=\"none\" 
frame=\"void\"\n       cols=\"2\" cellspacing=\"0\" cellpadding=\"0\">").nl();
        out->put_string("<tr valign=\"top\" align=\"left\">").nl();
        if ((t->arg1 == 0) || (strcmp(t->arg1, "") == 0))
        out->put_string("<td 
width=\"").put_number(width).put_string("%\"></td>");

reply via email to

[Prev in Thread] Current Thread [Next in Thread]