[rfc-i] draft-iab-xml2rfc-02 - alignment of sourcecode
HANSEN, TONY L
tony at att.com
Tue Feb 2 10:41:51 PST 2016
On 2/2/16, 1:29 PM, "rfc-interest on behalf of Julian Reschke" <rfc-interest-bounces at rfc-editor.org on behalf of julian.reschke at gmx.de> wrote:
>On 2016-02-02 18:18, Paul Hoffman wrote:
>> … Paul Kyzivat wrote:
>>> For instance, consider ABNF source code. I would like the actual
>>> content of the sourcecode to be valid ABNF. That means that the first
>>> line of each rule must have no leading whitespace. So any indentation
>>> needs to come from the "align" attribute. Generally I would probably
>>> want to have the rules start out aligned with the current indent
>>> level, or maybe a bit more.
>> It sounds like you want "indent", not "align", but even then, I'm not
>> clear why. The sourcecode for your ABNF can have spaces at the beginning
>> of the lines, can't it?
>I'm with Paul. It would be good if the author wouldn't need to indent
>the artwork contents herself (whether it affects validity or not).
>In rfc2629.xslt, I have the attribute x:indent-with on <artwork> (see
>although the explanation isn't that good).
Which Paul? Paul Hoffman or Paul Kyzivat? Sounds like the latter, given that you saw a similar need in your processor.
I agree with the need, and think “indent” has the right semantics. It’s a purely visual hint for the processor.
More information about the rfc-interest