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

Paul Hoffman paul.hoffman at vpnc.org
Thu Feb 4 07:14:52 PST 2016


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


More information about the rfc-interest mailing list