From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id aKs4E40NCGBLfQAA0tVLHw (envelope-from ) for ; Wed, 20 Jan 2021 11:01:33 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id GNMUD40NCGBkUAAA1q6Kng (envelope-from ) for ; Wed, 20 Jan 2021 11:01:33 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 692B1940437 for ; Wed, 20 Jan 2021 11:01:32 +0000 (UTC) Received: from localhost ([::1]:37678 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l2BEw-0002HO-Qy for larch@yhetil.org; Wed, 20 Jan 2021 06:01:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42330) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2BBu-0000Eg-Jz for emacs-orgmode@gnu.org; Wed, 20 Jan 2021 05:58:22 -0500 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]:37137) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l2BBs-0002mW-3h for emacs-orgmode@gnu.org; Wed, 20 Jan 2021 05:58:22 -0500 Received: by mail-pj1-x1030.google.com with SMTP id g15so1975352pjd.2 for ; Wed, 20 Jan 2021 02:58:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:date:message-id:mime-version; bh=PHx3VFI6vInpnzfQ99lojdZ35kRZhd0KPxc6StII+SU=; b=VZVcshhHbjApERAQNzl8jgcPhER57F13sy3NIYdRZ5rhyXDVHH1h6EelDM2h5igsdz OPgHQfRq9mR76/DazCN7XqcN2B6uKf+t1dggtk89cyzTTfLTlAfkL/0/UZxUQXNwUs3a MfjgPTxIDVZj7/4JQLrtCRB8CIfrVgM0UwIlfyUS+Xyh4FPeAinemlhljcBqXFkHKLQj ynP19Zz5aQkEHMCG0e5+giLJ1AFRcgUCYzwzqco0hL0JVI1AIVaZPSVqOY4/ga3vVGzo qMfS48jPqJhqjOjLoK/LG98kzs4lLlYKAVmn/JgoYyaAGdOUcOSnQE8ExPWNLNLtmsg6 R7qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=PHx3VFI6vInpnzfQ99lojdZ35kRZhd0KPxc6StII+SU=; b=AfY8gfHTmSyQVHnjaAWSPORLqogWzBor+5lRch4RcwxahJwwAEc5uZMqTYZMsPyDt6 U5RyAle6XetoLOAXJzLUL/5ttWzquAC7JLMQj4R9Kj1zvek0LXC/5XCB9z/CGlnzEhhl ME4n4OSqp9sWzPqcldcODSBzmdv/VN7Z5x3misb/wA8X1iKEoN9g7aEgdmKGC8ejukPb iI9fn1gouXknn6Ub6Q0q4yMGEUxek1MqoYC/84BVd5WcaHbb9ENjkfeqXQxY5Myft0z2 +Xd3FEMHyQQPEHlDsKr/aUnWIZCN5X4l0ElyDHBarRZSPhgstKv/ro/aVMtDaCxh239H YSHA== X-Gm-Message-State: AOAM533XOvkzh2KO2g3G8JYGMhNXM2TUq39ILb5T67jdSjlceF5gL6Xe qdQLFFME31hzgU50ThfXiHWauj2lqaY= X-Google-Smtp-Source: ABdhPJzePqfO8m/mWD9zFYUseSzQjRyX+JxDcRk5CLrTjxGmmeOPxs8ZFRn5hMBlToFtfVrSdoemQg== X-Received: by 2002:a17:902:8c85:b029:dc:31af:90a6 with SMTP id t5-20020a1709028c85b02900dc31af90a6mr9402267plo.37.1611140297927; Wed, 20 Jan 2021 02:58:17 -0800 (PST) Received: from localhost (180-150-91-8.b4965b.per.nbn.aussiebb.net. [180.150.91.8]) by smtp.gmail.com with ESMTPSA id x127sm1939563pfb.74.2021.01.20.02.58.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jan 2021 02:58:16 -0800 (PST) User-agent: mu4e 1.4.14; emacs 27.1 From: TEC To: org-mode-email Subject: [PATCH] Date: Wed, 20 Jan 2021 18:46:43 +0800 Message-ID: <87turbj2nu.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::1030; envelope-from=tecosaur@gmail.com; helo=mail-pj1-x1030.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.95 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=VZVcshhH; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 692B1940437 X-Spam-Score: -1.95 X-Migadu-Scanner: scn0.migadu.com X-TUID: Vs7IiTB/0u8J --=-=-= Content-Type: text/plain Hi All, This is just some tweaks to the styling in ox-html that I think may appeal (and prevent ridiculously long lines on non-small displays, which are an issue for legibility). I also took the opportunity to remove the (obsolete) CDATA strings and make the CSS more consistently formatted. If you don't want this to get its own commit, please just squash it. Style changes: - Restrict max content width, and centre - tweak styling of source code blocks I took some screenshots (1440p monitor, 120% zoom, Firefox). Current: https://0x0.st/-iW9.png This patch: https://0x0.st/-iWp.png All the best, Timothy. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-ox-html.el-remove-CDATA-strings.patch >From 635bd77cd7a2dc55cc0705c5bbf2e11091bfbaf3 Mon Sep 17 00:00:00 2001 From: TEC Date: Wed, 20 Jan 2021 16:37:29 +0800 Subject: [PATCH 1/5] ox-html.el: remove CDATA strings * lisp/ox-html.el (org-html-scripts, org-html-style-default, org-html-infojs-template): remove CDATA strings, as they are now considered obsolete --- see https://developer.mozilla.org/en-US/docs/Web/API/CDATASection#specifications --- lisp/ox-html.el | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index 03145e35c..0cf3425df 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -234,7 +234,6 @@ property on the headline itself.") (defconst org-html-scripts "" "Basic JavaScript that is needed by HTML files produced by Org mode.") (defconst org-html-style-default "" "The default style specification for exported HTML files. You can use `org-html-head' and `org-html-head-extra' to add to @@ -515,10 +511,8 @@ means to use the maximum value consistent with other options." " "The template for the export style additions when org-info.js is used. @@ -1448,13 +1442,11 @@ done, timestamp, timestamp-kwd, tag, target. For example, a valid value would be: If you want to refer to an external style, use something like -- 2.29.2 --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0002-ox-html.el-limit-maximum-content-width-and-center.patch >From 5bef340093102936efe831f85fabdb589070ce43 Mon Sep 17 00:00:00 2001 From: TEC Date: Wed, 20 Jan 2021 16:45:20 +0800 Subject: [PATCH 2/5] ox-html.el: limit maximum content width and center * lisp/ox-html.el (org-html-style-default): To improve the appearance and legibility on larger screens: 1. Limit the content width to the upper end of advised line width, ~140 characters. 2. Centre the content. --- lisp/ox-html.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index 0cf3425df..9bbfad678 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -256,6 +256,7 @@ property on the headline itself.") (defconst org-html-style-default "