From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: Re: [PATCH] ox-html: add option to restore old src block behaviour? Date: Wed, 2 Oct 2019 20:16:11 -0400 Message-ID: References: <87h8553kwm.fsf@informationelle-selbstbestimmung-im-internet.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000dda1f20593f67e72" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:55476) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iFonC-0001XT-3d for emacs-orgmode@gnu.org; Wed, 02 Oct 2019 20:16:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iFonA-000590-UI for emacs-orgmode@gnu.org; Wed, 02 Oct 2019 20:16:26 -0400 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]:46479) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iFonA-00058k-OY for emacs-orgmode@gnu.org; Wed, 02 Oct 2019 20:16:24 -0400 Received: by mail-pg1-x541.google.com with SMTP id a3so579493pgm.13 for ; Wed, 02 Oct 2019 17:16:24 -0700 (PDT) In-Reply-To: <87h8553kwm.fsf@informationelle-selbstbestimmung-im-internet.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Org Mode --000000000000dda1f20593f67e72 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable So I'm pretty interested in this: what to others thi k? On Sat., Sep. 21, 2019, 8:16 a.m. Jens Lechtenboerger, < jens.lechtenboerger@fsfe.org> wrote: > On 2019-09-19, Matt Price wrote: > > > Over the summer, commit ded3d27b1468b878197e5fe55a70c5e13350ea27 > > by Nik Clayton was merged to master. It's a one-line change that > > adds new ~~ tags around each lin of code in html export of > > source blocks. It's useful because it allows individual lines to > > be addressed directly by CSS. > > > > However, at least one very common syntax highlighter, > > https://highlinghtjs.org, expects just a single tag, as do > > other common CSS frameworks. > > [...] > > The attached patch adds a new variable org-html-wrap-src-lines to > control whether code tags should be added or not. > > I=E2=80=99m not sure whether :package-version 9.3 is correct. Also, I se= t > the value to t, which does not change the current functionality. > However, for backwards compatibility (up to version 9.2.6), a value > of nil would be preferable. Any thoughts? > > Best wishes > Jens > > --000000000000dda1f20593f67e72 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
So I'm pretty interested in this: what to others= thi k?

On Sat., Sep. 21, 2019, 8:16 a.m. Jens Lechtenboerger, <jens.lechtenboerger@fsfe.org> w= rote:
On 2019-09-19, Matt Price wro= te:

> Over the summer, commit ded3d27b1468b878197e5fe55a70c5e13350ea27
> by Nik Clayton was merged to master. It's a one-line change that > adds new ~<code>~ tags around each lin of code in html export of=
> source blocks.=C2=A0 It's useful because it allows individual line= s to
> be addressed directly by CSS.
>
> However, at least one very common syntax highlighter,
> https://highlinghtjs.org, expects just a single <code= > tag, as do
> other common CSS frameworks.
> [...]

The attached patch adds a new variable org-html-wrap-src-lines to
control whether code tags should be added or not.

I=E2=80=99m not sure whether :package-version 9.3 is correct.=C2=A0 Also, I= set
the value to t, which does not change the current functionality.
However, for backwards compatibility (up to version 9.2.6), a value
of nil would be preferable.=C2=A0 Any thoughts?

Best wishes
Jens

--000000000000dda1f20593f67e72--