Re: [xml2rfc-dev] [Ext] Re: [xml2rfc] [Rfc-markdown] <br> is back, was: New xml2rfc release: v2.32.0

Henrik Levkowetz <henrik@levkowetz.com> Tue, 08 October 2019 17:51 UTC

Return-Path: <henrik@levkowetz.com>
X-Original-To: xml2rfc-dev@ietfa.amsl.com
Delivered-To: xml2rfc-dev@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F1B0F12008C for <xml2rfc-dev@ietfa.amsl.com>; Tue, 8 Oct 2019 10:51:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.095
X-Spam-Level:
X-Spam-Status: No, score=-1.095 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, T_SPF_PERMERROR=0.01, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
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 vMzLkcSpHhRJ for <xml2rfc-dev@ietfa.amsl.com>; Tue, 8 Oct 2019 10:51:35 -0700 (PDT)
Received: from zinfandel.tools.ietf.org (unknown [IPv6:2001:1890:126c::1:2a]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7DE0F120058 for <xml2rfc-dev@ietf.org>; Tue, 8 Oct 2019 10:51:35 -0700 (PDT)
Received: from h-202-242.a357.priv.bahnhof.se ([158.174.202.242]:49748 helo=tannat.localdomain) by zinfandel.tools.ietf.org with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <henrik@levkowetz.com>) id 1iHte2-0001Gf-F2; Tue, 08 Oct 2019 10:51:35 -0700
To: Paul Hoffman <paul.hoffman@icann.org>, "xml2rfc-dev@ietf.org" <xml2rfc-dev@ietf.org>, Sandy Ginoza <sginoza@amsl.com>
References: <E1iGMu9-00055y-Ui@durif.tools.ietf.org> <8304e61d-c550-91ea-9e23-eef2cd31240b@gmx.de> <A3513970-EEB0-4DBD-9E6F-A87EBFAF886D@att.com> <de4feaff-8f71-cd38-545c-2d848749251b@levkowetz.com> <f00a671a-6fe4-f5ae-2582-0b78ffa1c256@gmx.de> <1f18382c-d830-b887-f5d3-3f376ae4fdd7@gmx.de> <B15F7AF0-F5A0-401A-9F6E-F7E0E466B6A7@amsl.com> <f4f1b7ba-127a-fbfa-531b-eeff03814281@gmx.de> <71bc8d39-d06c-d900-cc8e-04a48218d75f@gmail.com> <0905DADC-E9D5-47A7-B610-F8A62686D2BD@att.com> <07DBAE10-D1FA-45C4-B7A2-321B265CA302@amsl.com> <c88388ff-84ae-c5f5-e093-e9aee77da3d6@levkowetz.com> <5f467e5a-200f-e7fd-94d6-8b04d863c7e2@icann.org>
From: Henrik Levkowetz <henrik@levkowetz.com>
Message-ID: <b3c2d77e-d28e-3b3e-8fe7-88c91104410d@levkowetz.com>
Date: Tue, 08 Oct 2019 19:51:26 +0200
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <5f467e5a-200f-e7fd-94d6-8b04d863c7e2@icann.org>
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="ArDGrrK8uCAngvh0BXergEEfaMqiVVS43"
X-SA-Exim-Connect-IP: 158.174.202.242
X-SA-Exim-Rcpt-To: sginoza@amsl.com, xml2rfc-dev@ietf.org, paul.hoffman@icann.org
X-SA-Exim-Mail-From: henrik@levkowetz.com
X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000)
X-SA-Exim-Scanned: Yes (on zinfandel.tools.ietf.org)
X-Clacks-Overhead: GNU Terry Pratchett
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc-dev/R8teoRQwsWGtqkYtAgR05RQJ8aE>
Subject: Re: [xml2rfc-dev] [Ext] Re: [xml2rfc] [Rfc-markdown] <br> is back, was: New xml2rfc release: v2.32.0
X-BeenThere: xml2rfc-dev@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Discussion about particulars of xml2rfc V3 design, development and code." <xml2rfc-dev.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/xml2rfc-dev>, <mailto:xml2rfc-dev-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/xml2rfc-dev/>
List-Post: <mailto:xml2rfc-dev@ietf.org>
List-Help: <mailto:xml2rfc-dev-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xml2rfc-dev>, <mailto:xml2rfc-dev-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 08 Oct 2019 17:51:37 -0000


On 2019-10-08 18:55, Paul Hoffman wrote:
> On 10/8/19 9:17 AM, Henrik Levkowetz wrote:
>>>> Sandy, does the RPC feel that the ability to add a line break is needed?
>>>
>>> Yes, the RPC would appreciate being able to use <br>.
>> 
>> 
>> Ok, I then propose that we permit <br> in body text, including lists and
>> tables, and in document and section titles.  More specifically, I propose to
>> permit <br> as a child element of these elements:
>> 
>>     blockquote
>>     dd
>>     dt
>>     em
>>     li
>>     name
>>     strong
>>     t
>>     td
>>     th
>>     title
>>     tt
>> 
>> (Should <sub> and <sup> be in that list?  If we compare with the places where
>> for instance <bcp14> is permitted, the answer would be 'yes'; but I'm not
>> sure it's the right thing to do.)
> 
> This seems to go well beyond what the RPC asked for and significantly muddies the semantics of the v3 format.
> 
> The concern of the folks who contributed to the v3 design is that <br> everywhere would have authors thinking that they could put in line breaks for emphasis, or for making the output look "right" without any semantic meaning. In the original HTML semantics, <br> is a block-level break, not a character formatting break.
> 
> Given that, I would propose to instead allow <br/> in the following:
> 
> blockquote
> dd
> li
> name
> t
> td
> th

So that removes dt, em, strong, title and tt.

<title> is one of the cases the RPC already ran into, so eliminating that
from the list will leave one of their cases unhandled.

The case I made in the original issue #37 still holds:  Limiting <br> too
strongly will result in a lot of surprises for authors, when they expect
to be able to use <br/>, but the validation fails.  I think this is
applicable for em, strong, and tt.

Additionally, the case Sandy mentioned where the author wanted a piece of
text set on two lines is very likely to come up for <tt>, so not permitting
<br> there seems wrong.

As for dt, it will have similar issues as <title> and <name>.  It will only
become an issue when the RPC runs into a case where there's a long <dt>
text which doesn't display well without <br>.

I think the right thing, both for the RPC and authors in general, is to have
<br> available everywhere they might end up using it, rather than restricting
it too strongly.


	Henrik


> (I strongly dislike having <br/> in <name>, but we allow other formatting there, so this should be allowed as well.)
> 
> Sandy: Would that suit the needs of the RPC?
> 
> --Paul Hoffman
> _______________________________________________
> xml2rfc-dev mailing list
> xml2rfc-dev@ietf.org
> https://www.ietf.org/mailman/listinfo/xml2rfc-dev
>