emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] Org-mode publish avoids inserting script license tag into target documents
@ 2021-04-23  1:37 Anthony Carrico
  0 siblings, 0 replies; only message in thread
From: Anthony Carrico @ 2021-04-23  1:37 UTC (permalink / raw)
  To: emacs-orgmode

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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-23  1:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-23  1:37 [PATCH] Org-mode publish avoids inserting script license tag into target documents Anthony Carrico

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).