Re: [rfc-i] line wrapping in XML

Michael StJohns <msj@nthpermutation.com> Fri, 30 October 2020 01:15 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 856333A0C9F; Thu, 29 Oct 2020 18:15:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.697
X-Spam-Level:
X-Spam-Status: No, score=-2.697 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, 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 kTIqYoUT13f4; Thu, 29 Oct 2020 18:15:08 -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 4CBED3A0C9A; Thu, 29 Oct 2020 18:15:06 -0700 (PDT)
Received: from rfcpa.amsl.com (localhost [IPv6:::1]) by rfc-editor.org (Postfix) with ESMTP id 4394BF40737; Thu, 29 Oct 2020 18:14:52 -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 ACB47F4071C for <rfc-interest@rfc-editor.org>; Thu, 29 Oct 2020 18:14:50 -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 OWRUi0CRTF3P for <rfc-interest@rfc-editor.org>; Thu, 29 Oct 2020 18:14:46 -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 BA7FEF40729 for <rfc-interest@rfc-editor.org>; Thu, 29 Oct 2020 18:14:46 -0700 (PDT)
Received: by mail-io1-xd2a.google.com with SMTP id u62so5830815iod.8 for <rfc-interest@rfc-editor.org>; Thu, 29 Oct 2020 18:15:00 -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=AY0V57cS0tr+oCOo/cTWcRz1BB7JqdueLxxl5TLzCpU=; b=FcvnsGup8Q6MPABLqNNQnSILMMgP/nuqxk7fcZzsqlYjudfDJ8Gq+NV33MKtECTrEa KCJBh5UVNAkAZgamGg4MsmyEeGcwL+LwNrEWGfccbHE8wGaE+LzJGLuZrj/nXhJgqlfo hsIfcaEPr8Fs7RHkzg20qlgTlvVY9LqvV3gvEQcuXI8tPyl0YjpaaaeRbOgkiCtXpD7k QOzbvrFMiSa8twvRj7+8jJeDeDviwId7z3wMoUPAx5jxsZy1hGG5dKuBQbkhse1WJfz5 jFnxb1j4BUINdGSIXXaXB8t4IvEiXCIloXwZjDX2Mfju+TeO1/WgaLH9edQPIL5UfnQo DI6Q==
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=AY0V57cS0tr+oCOo/cTWcRz1BB7JqdueLxxl5TLzCpU=; b=efTPfcEBSY1b/j4z76ge2rarQoQFJIS9E2J2PGKSKFGda4Fkj6YSNicCJ436foaSON Oemq/nADNgeD4Jrt8XHIDj4qxs5cOMspBxueGq/0xVzRfCn9OBTy85r3/L6j7Fs8tJGl Juwqr8B3DfAhpj3e6cMWupKauctmEWIOo7Rs0p1x0Gz0G/+opB7XjUvP+PTJL97O16Zs wzjDbkMK+DrW2LKKicWPYVJwhW8RmgQFV8zZPoTFDxQBuDfIaMjPf8KEnmxrs1OA1G2l lQdjFZckhGFzgYDIcWooxU45VM2SqzgGitzLEjawAWnSuIMx2scGPV3TgAHR71GcwmAf NO4A==
X-Gm-Message-State: AOAM532LE4lGDKZ2bVUsg+AH9J6zNtTPdL51XVprN4Z/k92bZzzbNWvV IPSPQNvnw2r3i+ffQqffOyxx0Rdb3cRX+vZ1qGY=
X-Google-Smtp-Source: ABdhPJxEuKkpAopYfveQAJN2vsqwRdIF517zDA6DLVlrDSqvEqAdM9LYdNtP61WRBhd1l45rqL5PTg==
X-Received: by 2002:a6b:9187:: with SMTP id t129mr103274iod.30.1604020499566; Thu, 29 Oct 2020 18:14:59 -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 g185sm3783075ilh.35.2020.10.29.18.14.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Oct 2020 18:14:58 -0700 (PDT)
To: Mark Nottingham <mnot@mnot.net>
References: <30D23CA0-2A80-4BA3-AC18-285CF45FB5FF@mnot.net> <7e447678-599c-3bdd-40ff-eacea9ab8f78@nthpermutation.com> <E2C4653A-6557-4E80-847C-B3E77A35BA7E@mnot.net>
From: Michael StJohns <msj@nthpermutation.com>
Message-ID: <ac2a7cfd-d51c-5803-21dc-4fefa5ecf235@nthpermutation.com>
Date: Thu, 29 Oct 2020 21:14:56 -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: <E2C4653A-6557-4E80-847C-B3E77A35BA7E@mnot.net>
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>

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