emacs-orgmode
[Top][All Lists]
Advanced

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

[PATCH] Org-mode publish avoids inserting script license tag into target


From: Anthony Carrico
Subject: [PATCH] Org-mode publish avoids inserting script license tag into target documents
Date: Thu, 22 Apr 2021 21:37:03 -0400

>From 8f86d82b6784d26d8af86de01adcf333ee81148b Mon Sep 17 00:00:00 2001
From: Anthony Carrico <acarrico@memebeam.org>
Date: Thu, 22 Apr 2021 17:32:59 -0400
Subject: [PATCH] Org-mode publish avoids inserting script license tag into
 target documents

* ox-html.el: In previous versions, org-export included a script
  license tag which created a conflict for authors exporting documents
  for use with the LibreJS web filter. The script is in the public
  domain, and does not conflict with any LibreJS license notice that
  authors may include at the top of their page, so a separate license
  in the <script> is unnecessary and was removed.

This entire patch is released to the public domain by its author, Anthony 
Carrico.  TINYCHANGE
---
 lisp/ox-html.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index d2f24f5c6..15ab15c34 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -233,7 +233,6 @@ property on the headline itself.")
 
 (defconst org-html-scripts
   "<script type=\"text/javascript\">
-// @license 
magnet:?xt=urn:btih:e95b018ef3580986a04669f1b5879592219e2a7a&dn=public-domain.txt
 Public Domain
 <!--/*--><![CDATA[/*><!--*/
      function CodeHighlightOn(elem, id)
      {
@@ -252,9 +251,8 @@ property on the headline itself.")
        }
      }
     /*]]>*///-->
-// @license-end
 </script>"
-  "Basic JavaScript that is needed by HTML files produced by Org mode.")
+  "Basic public domain JavaScript that is needed by HTML files produced by Org 
mode.")
 
 (defconst org-html-style-default
   "<style type=\"text/css\">
-- 
2.29.2



reply via email to

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