[rfc-i] Line numbers

jhildebr at cisco.com (Joe Hildebrand (jhildebr)) Fri, 05 February 2016 21:38 UTC

From: jhildebr at cisco.com (Joe Hildebrand (jhildebr))
Date: Fri, 5 Feb 2016 21:38:07 +0000
Subject: [rfc-i] Line numbers
In-Reply-To: <56B51424.7070206@alum.mit.edu>
References: <81A5FD6D-8F26-42B6-B16A-72AD73B4057A@cisco.com> <56B4EEA8.2000503@dcrocker.net> <446ADA70-38A1-4B59-9DEC-24148C849C6F@cisco.com> <D0B85D9C-7E05-4579-9819-5CB8ED1E61E4@cisco.com> <56B51424.7070206@alum.mit.edu>
Message-ID: <D25E1A32-1E66-4C3D-8E40-9DACB24ADC9C@cisco.com>

On 2/5/16, 2:29 PM, "rfc-interest on behalf of Paul Kyzivat" <rfc-interest-bounces at rfc-editor.org on behalf of pkyzivat at alum.mit.edu> wrote:



>How would this affect the indentation? Would the numbers start at the 
>same place as unnumbered code? (Thus pushing the code further to the 
>right.) Or would the code be positioned the same either way, with the 
>numbers pushed further left?

For HTML/PDF, I think that this is up to the team that writes the CSS.  The left side of the box will be positioned *relative* to the enclosing block, but that relative size might be negative if you have line numbers.  This is a detail that we would run down in a more full-featured prototype.

For the text format, I'm not sure; I could be talked into either way.  The nice thing about the line numbers is that you could tell much more easily where the sourcecode block stopped.

-- 
Joe Hildebrand