From mboxrd@z Thu Jan 1 00:00:00 1970 From: Trey Ethan Harris Subject: Re: Long links Date: Sat, 4 Jan 2020 19:45:06 -0500 Message-ID: References: <5e0911cd.1c69fb81.3d5f3.0029@mx.google.com> <87mubazht9.fsf@nicolasgoaziou.fr> <87woa7uneq.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000568e28059b59db38" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:56955) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inu2j-0007li-9I for emacs-orgmode@gnu.org; Sat, 04 Jan 2020 19:45:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1inu2h-000288-OO for emacs-orgmode@gnu.org; Sat, 04 Jan 2020 19:45:21 -0500 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]:38324) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1inu2h-00025Y-DK for emacs-orgmode@gnu.org; Sat, 04 Jan 2020 19:45:19 -0500 Received: by mail-lf1-x12a.google.com with SMTP id r14so34202958lfm.5 for ; Sat, 04 Jan 2020 16:45:19 -0800 (PST) In-Reply-To: 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: Steven Penny Cc: emacs-orgmode@gnu.org --000000000000568e28059b59db38 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Jan 4, 2020 at 19:23 Steven Penny wrote: > On Sat, Jan 4, 2020 at 6:18 PM Trey Ethan Harris wrote: > > I think you did not explain your issue clearly, then=E2=80=94on GitHub,= long > lines and > > long links are displayed perfectly, as this example with a 434-characte= r > line > > and your originally-mentioned link shows, with no horizontal scrolling > and no > > special styling: > > > > https://gist.github.com/treyharris/fcfb2558806e35ffc8d3dd4502a06c39 > > If you had browsed beyond even the most basic example, you would see that > your > point falls apart: > > https://github.com/cup/autumn/blob/master/docs/append-to-array/index.html Uh... that=E2=80=99s an HTML file=E2=80=94this is the emacs-orgmode mailing= list. And viewing that page as rendered HTML in a browser, there=E2=80=99s no horizon= tal scrolling I see (and doesn=E2=80=99t appear to be with your styles as rende= red at https://cup.github.io/autumn/append-to-array/). I was asking for an example of an Org mode file showing the issue that=E2=80=99s concerning you, not ju= st proof that GitHub sometimes does horizontal scrolling. If you=E2=80=99re asking about long lines in general that could be generate= d as export from Org-mode to any other format, such as Org *into* HTML, and then want to limit the lengths of the lines of the exported document code generated, in characters=E2=80=94and not what is displayed in width as pixe= ls=E2=80=94then I don=E2=80=99t understand why you=E2=80=99d even be looking at Org-mode=E2= =80=99s own link syntax. Line breaks in an Org file do not, in the general case, propagate into exported formats (except when line breaks are significant, like in source blocks). So successfully line-breaking in the middle of a URL in Org wouldn=E2=80=99t necessarily generate a line-broken URL in the resulting HT= ML (or TeX or PDF, source or rendered). In any case, there will be no single solution to this=E2=80=94any ox librar= y for Org export you use will have to be modified if they don=E2=80=99t handle line-breaks the way you want. If you=E2=80=99re planning on including verbatim Org source examples _in_ t= he generated HTML (as you are currently doing for comparing programming languages), that=E2=80=99s the case where a long Org source line might blee= d visibly into the final rendered output. Are you? --000000000000568e28059b59db38 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Sat, Jan 4, 2020 at 19:23 = Steven Penny <svn= penn@gmail.com> wrote:
On Sa= t, Jan 4, 2020 at 6:18 PM Trey Ethan Harris wrote:
> I think you did not explain your issue clearly, then=E2=80=94on GitHub= , long lines and
> long links are displayed perfectly, as this example with a 434-charact= er line
> and your originally-mentioned link shows, with no horizontal scrolling= and no
> special styling:
>
> https://gist.github.com/trey= harris/fcfb2558806e35ffc8d3dd4502a06c39

If you had browsed beyond even the most basic example, you would see that y= our
point falls apart:

https://github.com/cup/autu= mn/blob/master/docs/append-to-array/index.html

Uh... that=E2=80=99s an HTML file=E2=80=94this is = the emacs-orgmode mailing list. And viewing that page as rendered HTML in a= browser, there=E2=80=99s no horizontal scrolling I see (and doesn=E2=80=99= t appear to be with your styles as rendered at https://cup.github.io/autum= n/append-to-array/). I was asking for an example of an Org mode file sh= owing the issue that=E2=80=99s concerning you, not just proof that GitHub s= ometimes does horizontal scrolling.

If you=E2=80=99re asking about long lines in general that could= be generated as export from Org-mode to any other format, such as Org *int= o* HTML, and then want to limit the lengths of the lines of the exported do= cument code generated, in characters=E2=80=94and not what is displayed in w= idth as pixels=E2=80=94then I don=E2=80=99t understand why you=E2=80=99d ev= en be looking at Org-mode=E2=80=99s own link syntax. Line breaks in an Org = file do not, in the general case, propagate into exported formats (except w= hen line breaks are significant, like in source blocks). So successfully li= ne-breaking in the middle of a URL in Org wouldn=E2=80=99t necessarily gene= rate a line-broken URL in the resulting HTML (or TeX or PDF, source or rend= ered).

In any case, ther= e will be no single solution to this=E2=80=94any ox library for Org export = you use will have to be modified if they don=E2=80=99t handle line-breaks t= he way you want.

If you=E2=80=99re planning on including verbatim Org source = examples _in_ the generated HTML (as you are currently doing for comparing = programming languages), that=E2=80=99s the case where a long Org source lin= e might bleed visibly into the final rendered output. Are you?
<= /div>
--000000000000568e28059b59db38--