Re: [netmod] artwork folding: dual support modes?

Kent Watsen <kent@watsen.net> Wed, 27 February 2019 16:31 UTC

Return-Path: <010001692fcb71bc-c5fbb484-a99a-4d1d-84c0-80447b5dead3-000000@amazonses.watsen.net>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id ABA1E130FF0 for <netmod@ietfa.amsl.com>; Wed, 27 Feb 2019 08:31:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=amazonses.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 89_eJqTUquA6 for <netmod@ietfa.amsl.com>; Wed, 27 Feb 2019 08:30:57 -0800 (PST)
Received: from a8-96.smtp-out.amazonses.com (a8-96.smtp-out.amazonses.com [54.240.8.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 39E3E130FFF for <netmod@ietf.org>; Wed, 27 Feb 2019 08:30:57 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug; d=amazonses.com; t=1551285056; h=From:Message-Id:Content-Type:Mime-Version:Subject:Date:In-Reply-To:Cc:To:References:Feedback-ID; bh=uueRoZR9/3tmmvvb5ccYnvzxZCX6bNgz+P4qG9syZCk=; b=DRf+bflpbOzcXgCGmQXNkZ0ui02Gw1JkqClqSEhgpFePuZ90zUa9W9465r4dREpt utG6kWoqLJk0vGDi6hVPB9b3GR7Q10Sohq63o0Dkjn1MTegolPUC8wMz4QmIKX5D4p8 u+MxfnF+E+IY2rVeMAzX3qSHNqIV9XAXbJLqiMck=
From: Kent Watsen <kent@watsen.net>
Message-ID: <010001692fcb71bc-c5fbb484-a99a-4d1d-84c0-80447b5dead3-000000@email.amazonses.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_64365204-9292-43DB-96CB-FDB485F11A33"
Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\))
Date: Wed, 27 Feb 2019 16:30:56 +0000
In-Reply-To: <3af58c925ad74fbfaaea299877bf992d@XCH-RCD-007.cisco.com>
Cc: "adrian@olddog.co.uk" <adrian@olddog.co.uk>, Joel Jaeggli <joelja@bogus.com>, "netmod@ietf.org" <netmod@ietf.org>
To: "Rob Wilton (rwilton)" <rwilton@cisco.com>
References: <0100016926bfd7ac-333fc4ef-98a8-4dc4-98a2-1b3414b35e24-000000@email.amazonses.com> <04b001d4ce22$5bd78d50$1386a7f0$@olddog.co.uk> <6E24D34F-9943-4A71-9F28-4E4548FF30B0@bogus.com> <057f01d4ce80$7bc4fc70$734ef550$@olddog.co.uk> <3af58c925ad74fbfaaea299877bf992d@XCH-RCD-007.cisco.com>
X-Mailer: Apple Mail (2.3445.102.3)
X-SES-Outgoing: 2019.02.27-54.240.8.96
Feedback-ID: 1.us-east-1.DKmIRZFhhsBhtmFMNikgwZUWVrODEw9qVcPhqJEI2DA=:AmazonSES
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/q4Sxg7OF_w8IPFlzAr2L8m-wuSw>
Subject: Re: [netmod] artwork folding: dual support modes?
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 27 Feb 2019 16:31:02 -0000

All,

There seems to be some confusion.  My original message said:

	Whereby this second form only supports the folded line continuing on column 1 (no indents).

To be clear, if indents are desired, I strongly support using the double-backslash approach and
do not recommend any other approach.  

The tools team weren't looking at an indented example.  They were looking at an example where
all the continuation lines occurred on column 1.   Their surprising/non-intuitive comment stems
from only that experience.

Some additional thinking behind this:  I believe that tooling/automation will do the folding most 
of the time, and smart-indents are unlikely, thus the common-case will be to begin the continuation
line on column 1, in which case the second '\' character is not needed.   

I'm hoping to optimize for this common case scenario.

I do not agree that having having two folding approaches is an issue.   I would like to see this 
BCP have the broadest appeal possible.

Kent // contributor


> On Feb 27, 2019, at 5:09 AM, Rob Wilton (rwilton) <rwilton@cisco.com> wrote:
> 
> Hi Adrian,
>  
> I mostly agree with your last sentence.
>  
> I think that if you always preserve whitespace then a single slash is fine.  I.e. the single slash just breaks the line, and I think that this matches how editors, programming languages, etc normally behave.
>  
> What I’m not keen on is using a single slash, and then automatically stripping leading whitespace on the line following a slash.
>  
> If we want to have control of layout and be able to strip extra whitespace then my argument is that it is better to be explicit, and using two slashes is one way of achieving this.
>  
> Thanks,
> Rob
>  
>  
>  
> From: netmod <netmod-bounces@ietf.org <mailto:netmod-bounces@ietf.org>> On Behalf Of Adrian Farrel
> Sent: 27 February 2019 09:41
> To: 'Joel Jaeggli' <joelja@bogus.com <mailto:joelja@bogus.com>>
> Cc: netmod@ietf.org <mailto:netmod@ietf.org>
> Subject: Re: [netmod] artwork folding: dual support modes?
>  
> Complete agreement, Joel.
>  
> What follows may look better in proportional fonts.
>  
> With a single slash we can wrap as follows
>  
> 1234567        9012345
>  
> Goes to…
>  
> 1234567    \
>     9012345
>  
> …and unwrapping is easy.
>  
> However, if I want to manually wrap the line with indentation
>  
> The quick brown fox jumps over the lazy dog
>  
> ..going to…
>  
> The quick brown fox\
>       jumps over the lazy dog
>  
> …I am going to unfold as…
>  
> The quick brown fox      jumps over the lazy dog
>  
>  
> Conversely, if I resolve this second case by stripping leading spaces I get…
>  
> The quick brown foxjumps over the lazy dog
>  
> So I have to fold as…
>  
> The quick brown fox \
>       jumps over the lazy dog
>  
> But this causes the first case to unfold as
>  
> 1234567    9012345
>  
> …i.e., with missing spaces.
>  
> This is what caused the use of the second slash so…
>  
> 1234567    \
> \    9012345
>  
> …and…
>  
> The quick brown fox\
>      \ jumps over the lazy dog
>  
>  
> So, my point is, if and only if we do not care about these “spaces on the fold” cases, we can operate with a single slash.
>  
> Cheers,
> Adrian
>  
> From: Joel Jaeggli <joelja@bogus.com <mailto:joelja@bogus.com>> 
> Sent: 27 February 2019 06:31
> To: Adrian Farrel <adrian@olddog.co.uk <mailto:adrian@olddog.co.uk>>
> Cc: Kent Watsen <kent+ietf@watsen.net <mailto:kent+ietf@watsen.net>>; netmod@ietf.org <mailto:netmod@ietf.org>
> Subject: Re: [netmod] artwork folding: dual support modes?
>  
>  
>  
> 
> On Feb 26, 2019, at 14:26, Adrian Farrel <adrian@olddog.co.uk <mailto:adrian@olddog.co.uk>> wrote:
>  
> Hey.
>  
> I’ve been having this discussion with Kent off-line, but thought it should come to the list.
>  
> I don’t think it is a good idea to have two approaches. While it would be relatively easy to code for both approaches, it seems to add a degree of confusion if both have to be handled by the same code (consider deciding whether leading space characters are to be retained or not, something that can only be decided when the first non-space character is found), or by having different code for the two different cases.
>  
> It doesn’t seem to me that both cases are needed. We can pick one or the other.
>  
> A single slash has been used to wrap long lines in editors and shells for decades at this point.
>  
> and yeah whatever it is one method seems better than two.
>  
> 
>  
> And *if* we want to allow manual folding so that indents can be made to make the document more human-readable then we have to use a leading ‘\’ on continuation lines to show which spaces should be stripped and which retained.
>  
> Cheers,
> Adrian
>  
> From: netmod <netmod-bounces@ietf.org <mailto:netmod-bounces@ietf.org>> On Behalf Of Kent Watsen
> Sent: 25 February 2019 22:22
> To: netmod@ietf.org <mailto:netmod@ietf.org>
> Subject: [netmod] artwork folding: dual support modes?
>  
>  
> I had a chat with the tools team recently and, in the course of things, it was implied
> that the double backslash approach we have now was both surprising and non-intuitive. 
>  
> This got me thinking that we may have thrown the proverbial baby out with the bathwater.
> That is, currently we have a header that reads:
>  
>   NOTE: '\\' line wrapping per BCP XX (RFC XXXX)
>  
> So why not *also* support a header that reads (note the singe slash):
>  
>   NOTE: '\' line wrapping per BCP XX (RFC XXXX)
>  
> Whereby this second form only supports the folded line continuing on column 1 (no indents).
>  
> Thoughts?
>  
> Kent // contributor
>  
>  
> _______________________________________________
> netmod mailing list
> netmod@ietf.org <mailto:netmod@ietf.org>
> https://www.ietf.org/mailman/listinfo/netmod <https://www.ietf.org/mailman/listinfo/netmod>
>  
> _______________________________________________
> netmod mailing list
> netmod@ietf.org <mailto:netmod@ietf.org>
> https://www.ietf.org/mailman/listinfo/netmod <https://www.ietf.org/mailman/listinfo/netmod>