Re: [rfc-i] line wrapping in XML

Michael StJohns <msj@nthpermutation.com> Fri, 30 October 2020 02:01 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 068EF3A0989; Thu, 29 Oct 2020 19:01:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.696
X-Spam-Level:
X-Spam-Status: No, score=-2.696 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, NICE_REPLY_A=-0.247, RCVD_IN_DNSWL_BLOCKED=0.001, 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=nthpermutation-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 R5xDXtdBmkY6; Thu, 29 Oct 2020 19:01:43 -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 9B4193A0983; Thu, 29 Oct 2020 19:01:43 -0700 (PDT)
Received: from rfcpa.amsl.com (localhost [IPv6:::1]) by rfc-editor.org (Postfix) with ESMTP id 552F4F40723; Thu, 29 Oct 2020 19:01:29 -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 886C9F40723 for <rfc-interest@rfc-editor.org>; Thu, 29 Oct 2020 19:01:28 -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=nthpermutation-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 t4PuAUA5O4ht for <rfc-interest@rfc-editor.org>; Thu, 29 Oct 2020 19:01:24 -0700 (PDT)
Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by rfc-editor.org (Postfix) with ESMTPS id 5F6C8F40722 for <rfc-interest@rfc-editor.org>; Thu, 29 Oct 2020 19:01:24 -0700 (PDT)
Received: by mail-io1-xd2a.google.com with SMTP id z17so5923335iog.11 for <rfc-interest@rfc-editor.org>; Thu, 29 Oct 2020 19:01:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nthpermutation-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=F7PP63r1U7B3CJtcJdfSVab9qf/99nfqeOGciCpX0mE=; b=Zbv/1ccLTcD0saI4BLblNhbjeS/R2/K0whRh3AE470g88Uu33myHUgtB/Jpzb2+r32 EJWg5CTHwK+AF22xuC/ZUKmlZfNRTYMJb2plA5N1IqcuFU668Ooxu+3hEbaVsZCroX8b JY0Fy+cny1ccPTWJX8YL8OrZm2pztPU7/Dlro0V11FDDP65oEnbFg+lCwkdbYWRJgr4m UAyhoj9NjQd+Egl2ImQUkkmPt2D0dl2ih+R/1GtvGNeN8jxHqofv9ygYdCbMMjR//F+R 8/vyoBQ0UU+cYIH/cSc98RmDE+kkHmthbx+/kESZdYkhl5ZtoQ0A7M57Ab5pVRyVW6Mo bh0A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=F7PP63r1U7B3CJtcJdfSVab9qf/99nfqeOGciCpX0mE=; b=ryO3EwfJxGqX6O3AlY6QIzTAbhUzMgi9nKWLXHdr+jIUCj9Pjc80hIApCo0jgfcy9g rZ47BnYfBbup+4CHmm9F7tnymNikRoQ9FqUkU6SU/1HBd4KlIQNakxEugmsGnkVgRQNU eTXzIoT9PRqH8LyGS8VG6itSs5VdgzlT0xkMaKrGe/uSMW7rlxsC0mmZmz46XyQHfb3y kkTIcw6OLMnu7aflJyiJAaz1F7L2rrWSdDVIXOaZy/cdwlLGgaEjzFLwQytronWPJPlu Ee1DVuii7sBhgntLL98UbJH4bCRwgDw6eof3hO9538FqcgNrh3M5ZQoHmL7YuIYxNhT3 HS/Q==
X-Gm-Message-State: AOAM532by2MrhLY/to6fGESzbLhAaqPg+ARc1Ymi9rDxXtiXOVxhk/jb NN7+qN09u3/IraCoZE0ZBCmO1twk0+b0Dyhk9kg=
X-Google-Smtp-Source: ABdhPJz/QQ5Yk0YOkJrnFIMw3w3f56AMPcp6ryLjPHBy6fgzxBCR2vF9xbRy2vHREqdINNNGC6mgwA==
X-Received: by 2002:a6b:1546:: with SMTP id 67mr199181iov.182.1604023296079; Thu, 29 Oct 2020 19:01:36 -0700 (PDT)
Received: from [192.168.1.22] (pool-108-28-189-254.washdc.fios.verizon.net. [108.28.189.254]) by smtp.gmail.com with ESMTPSA id m15sm3936921ila.32.2020.10.29.19.01.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Oct 2020 19:01:35 -0700 (PDT)
To: Ted Lemon <mellon@fugue.com>
References: <ac2a7cfd-d51c-5803-21dc-4fefa5ecf235@nthpermutation.com> <F75DF553-AD3E-47E1-AD95-319D28806A11@fugue.com>
From: Michael StJohns <msj@nthpermutation.com>
Message-ID: <4489975b-1e7c-e869-217e-9ebae3651056@nthpermutation.com>
Date: Thu, 29 Oct 2020 22:01:33 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1
MIME-Version: 1.0
In-Reply-To: <F75DF553-AD3E-47E1-AD95-319D28806A11@fugue.com>
Content-Language: en-US
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-Transfer-Encoding: base64
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Errors-To: rfc-interest-bounces@rfc-editor.org
Sender: rfc-interest <rfc-interest-bounces@rfc-editor.org>

Again - without testing this I think its:  replace the -f save-buffer 
with  --eval '(write-file "newfile.xml" t)'

Mike




On 10/29/2020 9:16 PM, Ted Lemon wrote:
> 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