texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: * tp/Texinfo/XS/convert/format_html.c (file_heade


From: Patrice Dumas
Subject: branch master updated: * tp/Texinfo/XS/convert/format_html.c (file_header_information): do not output mathjax header on every file if split. Remove trailing end of line from text output if MATHJAX_CONFIGURATION is set.
Date: Sun, 13 Oct 2024 10:00:42 -0400

This is an automated email from the git hooks/post-receive script.

pertusus pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new 1ef1e782c4 * tp/Texinfo/XS/convert/format_html.c 
(file_header_information): do not output mathjax header on every file if split. 
Remove trailing end of line from text output if MATHJAX_CONFIGURATION is set.
1ef1e782c4 is described below

commit 1ef1e782c4e3245d27b51ed98fc1d0e33ede32d8
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sun Oct 13 16:00:33 2024 +0200

    * tp/Texinfo/XS/convert/format_html.c (file_header_information):
    do not output mathjax header on every file if split.
    Remove trailing end of line from text output if MATHJAX_CONFIGURATION
    is set.
---
 ChangeLog                           | 7 +++++++
 tp/Texinfo/XS/convert/format_html.c | 6 ++----
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 43ad7c9760..a09157481c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-10-13  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/XS/convert/format_html.c (file_header_information):
+       do not output mathjax header on every file if split.
+       Remove trailing end of line from text output if MATHJAX_CONFIGURATION
+       is set.
+
 2024-10-13  Gavin Smith <gavinsmith0123@gmail.com>
 
        * doc/texinfo.texi (HTML Xref Link Basics): edit text at end of
diff --git a/tp/Texinfo/XS/convert/format_html.c 
b/tp/Texinfo/XS/convert/format_html.c
index 07f2a41687..de3b086e91 100644
--- a/tp/Texinfo/XS/convert/format_html.c
+++ b/tp/Texinfo/XS/convert/format_html.c
@@ -3845,8 +3845,7 @@ file_header_information (CONVERTER *self, const ELEMENT 
*command,
     }
   if (self->conf->HTML_MATH.o.string
       && !strcmp (self->conf->HTML_MATH.o.string, "mathjax")
-      && (html_get_file_information (self, "mathjax", filename, &status) > 0
-          || (self->conf->SPLIT.o.string && strlen 
(self->conf->SPLIT.o.string))))
+      && (html_get_file_information (self, "mathjax", filename, &status) > 0))
     {
       char *mathjax_script = url_protect_url_text (self,
                                 self->conf->MATHJAX_SCRIPT.o.string);
@@ -3885,8 +3884,7 @@ file_header_information (CONVERTER *self, const ELEMENT 
*command,
  "      MathJax[component][field] = MathJax_conf[component][field];\n"
  "    }\n"
  "  }\n"
- "}\n"
- "\n", self->conf->MATHJAX_CONFIGURATION.o.string);
+ "}\n", self->conf->MATHJAX_CONFIGURATION.o.string);
         }
 
       text_printf (&text,



reply via email to

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