emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Anthony Carrico <acarrico@memebeam.org>
To: emacs-orgmode@gnu.org
Subject: [PATCH] Org-mode publish avoids inserting script license tag into target documents
Date: Thu, 22 Apr 2021 21:37:03 -0400	[thread overview]
Message-ID: <20210422231910.gvav3klqu6gqsccb@silver> (raw)

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	other threads:[~2021-04-23  1:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210422231910.gvav3klqu6gqsccb@silver \
    --to=acarrico@memebeam.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).