Re: [rfc-i] line wrapping in XML

Ted Lemon <mellon@fugue.com> Fri, 30 October 2020 01:17 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 597AE3A0E06; Thu, 29 Oct 2020 18:17:04 -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=fugue-com.20150623.gappssmtp.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 eOe32uzn0xut; Thu, 29 Oct 2020 18:17:02 -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 8A6243A1056; Thu, 29 Oct 2020 18:16:17 -0700 (PDT)
Received: from rfcpa.amsl.com (localhost [IPv6:::1]) by rfc-editor.org (Postfix) with ESMTP id 80EB5F40722; Thu, 29 Oct 2020 18:16:03 -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 24EE7F40721 for <rfc-interest@rfc-editor.org>; Thu, 29 Oct 2020 18:16:02 -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=fugue-com.20150623.gappssmtp.com
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 t4M711mb5wVr for <rfc-interest@rfc-editor.org>; Thu, 29 Oct 2020 18:15:58 -0700 (PDT)
Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) by rfc-editor.org (Postfix) with ESMTPS id ECA90F40722 for <rfc-interest@rfc-editor.org>; Thu, 29 Oct 2020 18:15:57 -0700 (PDT)
Received: by mail-io1-xd36.google.com with SMTP id p7so5844075ioo.6 for <rfc-interest@rfc-editor.org>; Thu, 29 Oct 2020 18:16:11 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fugue-com.20150623.gappssmtp.com; s=20150623; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=YCNuQhdMl1sx+OxtAu9dM44mw/Gsw9Zjp1MyEDw22Y8=; b=O0arEacpgGyacc1yVjsHz/YUlONoF7+F2kZuuJ2F2IgGJLSOfQQs3a5x4quQ8LunRV hvI+HN8Bkrr8O/lo23gDhX6Q7koRVzc3Yz/PaWW/FdXoGGJ21+FQf2nB4gT/XaOqjvqi 2mLlTDAcVJgBj/Upcu6owUGIDC7gxftbNPDJc59qZgwsdM1DG5UuOWkjlkZikXneIbg5 XCZN4J6iflnp3TQeIWnFIeayEnr1E9hngD3uyWJbZeuFF8Yr5qM1iURULqXphskW22DW GN4XNtu4zg+wDa92D7zsaetAVi7kPqHmVQrq8iUk/HnmMtJNyPSCRaVqPKbnmp0sSOrF eFHA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=YCNuQhdMl1sx+OxtAu9dM44mw/Gsw9Zjp1MyEDw22Y8=; b=ocK9vv41oMrJZ94HmRwF7Ks4mo/xYauBuEhm1pq3fHO2X+7b7Nl2Zl1XovY8aqk+KH YtupdbJIjEiTp8sBysGgwnHNDIvGbnyrkA4yY+a75djWN42PjoVIDkB3r6Ps3w2fOOES 92kmUxqsMhZVlL6S3knx2OyYFYwnhlTRc+OrBff2WACBhLeuCsnxTZG0J9gXkG3+vyGO FY1DkRDtrguSNusaMqBosUh0uSado+SkrmvqeUM6+GXnBLttovua/0za61kCZ6GfYsvt DrIzf7edEU6Ir1aFQm+/t0SB4Q6OlRZrLvRlxD3anFvN3xesTaKQ37jkiSfrz8XfsGCe cu/w==
X-Gm-Message-State: AOAM532dBqRe8JIRM79dErkB1HSpXMUgw9nshMmfPYYdxYxliCorpRUt V8R4O2qPP4XYlpvHNc9aXEb4PQ==
X-Google-Smtp-Source: ABdhPJziM4aRP4lQKGrMZM9xh/Q7i8I3jSVCS3LDC98fMHgvf3TMuxfA1pwh/ta1l+P6mORrY/kWEQ==
X-Received: by 2002:a05:6602:214c:: with SMTP id y12mr105884ioy.24.1604020570819; Thu, 29 Oct 2020 18:16:10 -0700 (PDT)
Received: from [192.168.4.114] (c-24-91-177-160.hsd1.nh.comcast.net. [24.91.177.160]) by smtp.gmail.com with ESMTPSA id x5sm3888490ilc.15.2020.10.29.18.16.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Oct 2020 18:16:10 -0700 (PDT)
From: Ted Lemon <mellon@fugue.com>
Mime-Version: 1.0 (1.0)
Date: Thu, 29 Oct 2020 21:16:09 -0400
Message-Id: <F75DF553-AD3E-47E1-AD95-319D28806A11@fugue.com>
References: <ac2a7cfd-d51c-5803-21dc-4fefa5ecf235@nthpermutation.com>
In-Reply-To: <ac2a7cfd-d51c-5803-21dc-4fefa5ecf235@nthpermutation.com>
To: Michael StJohns <msj@nthpermutation.com>
X-Mailer: iPhone Mail (18B84)
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="utf-8"
Content-Transfer-Encoding: base64
Errors-To: rfc-interest-bounces@rfc-editor.org
Sender: rfc-interest <rfc-interest-bounces@rfc-editor.org>

That works if you don’t mind overwriting the original. 

> On Oct 29, 2020, at 21:15, 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/
>> 
> 
> _______________________________________________
> rfc-interest mailing list
> rfc-interest@rfc-editor.org
> https://www.rfc-editor.org/mailman/listinfo/rfc-interest
_______________________________________________
rfc-interest mailing list
rfc-interest@rfc-editor.org
https://www.rfc-editor.org/mailman/listinfo/rfc-interest