bug-texinfo
[Top][All Lists]
Advanced

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

[PATCH] Fix HTML output


From: Simon Josefsson
Subject: [PATCH] Fix HTML output
Date: Sat, 10 Jan 2004 03:50:49 +0100
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

I noticed the HTML output contain navigation bars like this:

, Previous: Contributing, Up: Introduction

2004-01-10  Simon Josefsson  <address@hidden>

        * makeinfo/node.c (cm_node): Only print ",\n" at correct places.

--- node.c.~1.10.~      2004-01-09 23:43:22.000000000 +0100
+++ node.c      2004-01-10 03:47:16.000000000 +0100
@@ -955,11 +955,13 @@
              add_word_args ("\">%s</a>", tem);
              
               free (tem);
+
+             if (prev || up)
+               add_word (",\n");
             }
           if (prev)
             {
               tem = expansion (prev, 0);
-             add_word (",\n");
              add_word (_("Previous:"));
               add_word ("&nbsp;");
              add_word ("<a rel=\"previous\" accesskey=\"p\" href=\"");
@@ -967,11 +969,13 @@
               tem = escape_string (tem);
              add_word_args ("\">%s</a>", tem);
               free (tem);
+
+             if (up)
+               add_word (",\n");
             }
           if (up)
             {
               tem = expansion (up, 0);
-             add_word (",\n");
              add_word (_("Up:"));
               add_word ("&nbsp;");
              add_word ("<a rel=\"up\" accesskey=\"u\" href=\"");





reply via email to

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