bug-texinfo
[Top][All Lists]
Advanced

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

Re: HTML <h5 class="unnumberedsubsubsec"> too small


From: Karl Berry
Subject: Re: HTML <h5 class="unnumberedsubsubsec"> too small
Date: Sat, 22 Mar 2003 12:44:07 -0500

        <h5 class="unnumberedsubsubsec">Foo Bar</h5>

Here's a patch to keep things at <h3> or larger.  Thanks.

*** sectioning.c.~1.6.~ Thu Nov  7 18:21:07 2002
--- sectioning.c        Sat Mar 22 09:38:23 2003
***************
*** 397,402 ****
--- 397,409 ----
  /* Insert the text following input_text_offset up to the end of the
     line as an HTML heading element of the appropriate `level' and
     tagged as an anchor for the current node.. */
+ 
+ /* We don't need anything fancy.  */
+ #ifdef MIN
+ #undef MIN
+ #endif
+ #define MIN(a,b) ((a) < (b) ? (a) : (b))
+ 
  void
  sectioning_html (level, cmd)
       int level;
***************
*** 413,420 ****
    old_no_indent = no_indent;
    no_indent = 1;
  
!   /* level 0 (chapter) is <h2> */
!   add_word_args ("<h%d class=\"%s\">", level + 2, cmd);
  
    /* If we are outside of any node, produce an anchor that
       the TOC could refer to.  */
--- 420,429 ----
    old_no_indent = no_indent;
    no_indent = 1;
  
!   /* level 0 (chapter) is <h2>, everything else is <h3>.  We don't want
!      to go lower than that because browsers then start rendering the
!      headings smaller than the text.  */
!   add_word_args ("<h%d class=\"%s\">", MIN (3, level + 2), cmd);
  
    /* If we are outside of any node, produce an anchor that
       the TOC could refer to.  */




reply via email to

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