[rfc-i] draft-iab-xml2rfc-02 - alignment of sourcecode

paul.hoffman at vpnc.org (Paul Hoffman) Thu, 04 February 2016 15:14 UTC

From: paul.hoffman at vpnc.org (Paul Hoffman)
Date: Thu, 04 Feb 2016 07:14:52 -0800
Subject: [rfc-i] draft-iab-xml2rfc-02 - alignment of sourcecode
In-Reply-To: <7F501E45-8DBC-4E7A-B4AC-1F483150D5AB@att.com>
References: <56ABB36D.6030500@alum.mit.edu> <6A914091-5ADA-4B52-B622-BF76BCC9E6FA@vpnc.org> <56B0F23B.20106@alum.mit.edu> <6A1935EE-73F3-4F93-896B-EC86934E9863@vpnc.org> <56B12AEB.7080902@gmx.de> <3FD398C6-A52F-4742-A819-1413B7D63809@cisco.com> <7F501E45-8DBC-4E7A-B4AC-1F483150D5AB@att.com>
Message-ID: <E083E5C7-85B6-4CB5-A6DF-D30128CE05EE@vpnc.org>

On 3 Feb 2016, at 20:19, HANSEN, TONY L wrote:

> The scenarios I came up with for different indentation levels was for
>
> *) the case of multiple languages that look better indented 
> differently
>
> *) code snippets where an inner block is displayed indented 
> differently than other code snippets
>
> One example of the second scenario where that would be useful is for 
> code that you want to eventually be concatenated together after being 
> extracted from the XML. The code would be stored within the XML using 
> the natural indentation level of the code elements, but then the 
> display is adjusted (possible as an outdent) to make it look better.
>
> In other words, it?s useful whenever the best extraction indentation 
> for the code segment does not match the best display indentation.

I feel like I'm being dense. When would having code with different 
indentation than what is in the code "look better"?

--Paul Hoffman