Re: [rfc-i] line wrapping in XML

Mark Nottingham <mnot@mnot.net> Fri, 30 October 2020 01:19 UTC

Return-Path: <rfc-interest-bounces@rfc-editor.org>
X-Original-To: ietfarch-rfc-interest-archive@ietfa.amsl.com
Delivered-To: ietfarch-rfc-interest-archive@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E2E5E3A08DC; Thu, 29 Oct 2020 18:19:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.75
X-Spam-Level:
X-Spam-Status: No, score=-4.75 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=mnot.net header.b=HwBokB9Q; dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=messagingengine.com header.b=iOK3PTSS
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 vZs6chXk67AG; Thu, 29 Oct 2020 18:19:27 -0700 (PDT)
Received: from rfc-editor.org (rfc-editor.org [4.31.198.49]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DB8263A0B55; Thu, 29 Oct 2020 18:18:25 -0700 (PDT)
Received: from rfcpa.amsl.com (localhost [IPv6:::1]) by rfc-editor.org (Postfix) with ESMTP id D0268F40723; Thu, 29 Oct 2020 18:18:11 -0700 (PDT)
X-Original-To: rfc-interest@rfc-editor.org
Delivered-To: rfc-interest@rfc-editor.org
Received: from localhost (localhost [127.0.0.1]) by rfc-editor.org (Postfix) with ESMTP id 7455AF40723 for <rfc-interest@rfc-editor.org>; Thu, 29 Oct 2020 18:18:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at rfc-editor.org
Authentication-Results: rfcpa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=mnot.net header.b=HwBokB9Q; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=iOK3PTSS
Received: from rfc-editor.org ([127.0.0.1]) by localhost (rfcpa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DZ0aViZmpyIQ for <rfc-interest@rfc-editor.org>; Thu, 29 Oct 2020 18:18:06 -0700 (PDT)
Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by rfc-editor.org (Postfix) with ESMTPS id 3A8F8F40721 for <rfc-interest@rfc-editor.org>; Thu, 29 Oct 2020 18:18:06 -0700 (PDT)
Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 99DFA5C0126; Thu, 29 Oct 2020 21:18:19 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 29 Oct 2020 21:18:19 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mnot.net; h= content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=fm1; bh=w 7nFkAwkDZbjU9DzmQdw63HP5/btEdFGB7MBo5Iu6JQ=; b=HwBokB9Qg8y2Lof52 kA7jbjTkUckZzjVvQZ5utdSpU8vdEf/5NeGqq4QeoA0Ka7CeX+TRXxd+SkcDNeHC 7WjKrSm3Gd1CtCXTAkqugZ+SVFzqGzm/InSuZwwPZP6aZlikijoyRr5Zqyrva0uz VTrVLqa0AN70Q+6ZFYrykbRqsK58yRRNk7z6pnUtR9FYtf/oOTfYWiLR6tyFEjlr J8TUWcI+Eod148wx5b7oCcZZg9o32al3hDFi91wCKzt0KvfqiDxVMxdfGXq8qcfP y76nxs1WMlMND9PElBvwOJLoV1034CQMXg1q7BE2THO6k/zRCOKLu4QJoT2Q2ita AQ42w==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=w7nFkAwkDZbjU9DzmQdw63HP5/btEdFGB7MBo5Iu6 JQ=; b=iOK3PTSSG42vkx1Wv9HYeLBMCqbkJ8G6/qA1YS6YrH3i6cYanSg6WgRdH ASVFQsCnVnGY0QCr3oS/9CCvTiolkajEg+HHymc8g0BvCFzLLdZzflL6DLiO6wIn J+mx2l8sCF4gwb373gdLW513JcBrZtgddJJvVgiHKStOxd15TI/6Sm6TDyvKB3AD BCL5o8Qke4EtY8WFrvPXDc7iLq+3p3QzEO5o6y0jSKj2NkJIzbcmGvWRJQ7vv8bm zHIv1iRIY9dKSr0umyD+MUgbsWqVmE9ft1Uy2SfLFCs6/BoGkBa4OpneeB0o31Fs jR+MWfMyOI23AyIIkfXZb0zmCYc0Q==
X-ME-Sender: <xms:2mmbXwD7LjV0-dzFV4Hv3p8DkCIWZ0b_9lTnuaP8xwrQqm1F0v8lBA> <xme:2mmbXyj7eIaqsD9M1hwfGIxWQvcoJd9jXK_5JKiO5iq8MfIFwqmXai7ReOv9HnHsW ilkz9jD6Z-myvdusg>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrleeggdefvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurheptggguffhjgffgffkfhfvofesthhqmh dthhdtvdenucfhrhhomhepofgrrhhkucfpohhtthhinhhghhgrmhcuoehmnhhothesmhhn ohhtrdhnvghtqeenucggtffrrghtthgvrhhnpeekudekgfegiedvfeetgfejkeettdeghe dtveeijeettdelvdfhueegudetudegudenucffohhmrghinheprhhftgdqvgguihhtohhr rdhorhhgpdhmnhhothdrnhgvthenucfkphepudduledrudejrdduheekrddvhedunecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhnohhtsehm nhhothdrnhgvth
X-ME-Proxy: <xmx:2mmbXzk4aSMsvNkMd6jYUYz8YFZItjuejXXIUfzTbVhN4b2bGjH8vA> <xmx:2mmbX2ySvyPXVbvWA3KMe4aJzR2TmJRU-rc4FdbtzmmAlMlcXvsyHQ> <xmx:2mmbX1Qk8jWj0Xfuy6VMBWo4ropD8wtYT3A2hyfYMHjDMmzVYh7pWQ> <xmx:22mbXwfotYE7LqgExL71bol3oRjG6gpEXBfjI7VB03vJPK4mUVFazw>
Received: from [192.168.7.30] (119-17-158-251.77119e.mel.static.aussiebb.net [119.17.158.251]) by mail.messagingengine.com (Postfix) with ESMTPA id 6E2E2328005A; Thu, 29 Oct 2020 21:18:17 -0400 (EDT)
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <ac2a7cfd-d51c-5803-21dc-4fefa5ecf235@nthpermutation.com>
Date: Fri, 30 Oct 2020 12:18:13 +1100
Message-Id: <470AFB98-0A95-4444-9897-8406304D86C5@mnot.net>
References: <30D23CA0-2A80-4BA3-AC18-285CF45FB5FF@mnot.net> <7e447678-599c-3bdd-40ff-eacea9ab8f78@nthpermutation.com> <E2C4653A-6557-4E80-847C-B3E77A35BA7E@mnot.net> <ac2a7cfd-d51c-5803-21dc-4fefa5ecf235@nthpermutation.com>
To: Michael StJohns <msj@nthpermutation.com>
X-Mailer: Apple Mail (2.3608.120.23.2.4)
Subject: Re: [rfc-i] line wrapping in XML
X-BeenThere: rfc-interest@rfc-editor.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "A list for discussion of the RFC series and RFC Editor functions." <rfc-interest.rfc-editor.org>
List-Unsubscribe: <https://www.rfc-editor.org/mailman/options/rfc-interest>, <mailto:rfc-interest-request@rfc-editor.org?subject=unsubscribe>
List-Archive: <http://www.rfc-editor.org/pipermail/rfc-interest/>
List-Post: <mailto:rfc-interest@rfc-editor.org>
List-Help: <mailto:rfc-interest-request@rfc-editor.org?subject=help>
List-Subscribe: <https://www.rfc-editor.org/mailman/listinfo/rfc-interest>, <mailto:rfc-interest-request@rfc-editor.org?subject=subscribe>
Cc: rfc-interest@rfc-editor.org
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: rfc-interest-bounces@rfc-editor.org
Sender: rfc-interest <rfc-interest-bounces@rfc-editor.org>

Thanks! Is it possible to control the wrap column?


> On 30 Oct 2020, at 12:14 pm, Michael StJohns <msj@nthpermutation.com> wrote:
> 
> It's good then that you don't have to (become an emacs user that is):
> 
> I haven't tested this but I think the command line version is:
> 
>      emacs -batch <filename>.xml -f mark-whole-buffer -f sgml-pretty-print -f save-buffer
> 
> Mike
> 
> 
> 
> On 10/29/2020 8:57 PM, Mark Nottingham wrote:
>> Sorry, nothing can convince me to become an Emacs user.
>> 
>> Cheers,
>> 
>>> On 30 Oct 2020, at 11:54 am, Michael StJohns <msj@nthpermutation.com> wrote:
>>> 
>>> On 10/29/2020 8:23 PM, Mark Nottingham wrote:
>>>> 1. Can we identify a freely available tool for correctly line-wrapping XML that people can insert into their toolchain pre-RPC, so that the RPC doesn't need to hand-wrap lines?
>>> Emacs SGML  or nXML mode - C-x h M-x sgml-pretty-print
>>> 
>>> Mike
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> rfc-interest mailing list
>>> rfc-interest@rfc-editor.org
>>> https://www.rfc-editor.org/mailman/listinfo/rfc-interest
>> --
>> Mark Nottingham   https://www.mnot.net/
>> 
> 

--
Mark Nottingham   https://www.mnot.net/

_______________________________________________
rfc-interest mailing list
rfc-interest@rfc-editor.org
https://www.rfc-editor.org/mailman/listinfo/rfc-interest