Re: [Python-Dev] [Python-checkins] peps: Restore whitespace characters lost via email transmission.
Le 20/07/2011 16:40, P.J. Eby a écrit :
PEP 12 prescribes four-space indents for PEPs, actually, wherever it mentions an specific indentation depth.
Ah, thanks. I see in my docutils docs that David Goodger used three and four-space indents (three for indenting the body of a directive, four for other cases).
(I'm a bit surprised that three-space indents are mandated for anything involving documenting Python in reST, though, since that would mean you'd also have to indent your code samples by three spaces, or else have an editor that supports two different tab widths.)
I don’t remember this being a pain. Maybe it’s because the reST I tend to edit has much more reST indents than Python code example indents, so I don’t mind typing <Tab><Space>. Cheers
On 07/20/11 17:05, Éric Araujo wrote:
Le 20/07/2011 16:40, P.J. Eby a écrit :
PEP 12 prescribes four-space indents for PEPs, actually, wherever it mentions an specific indentation depth.
Ah, thanks. I see in my docutils docs that David Goodger used three and four-space indents (three for indenting the body of a directive, four for other cases).
(I'm a bit surprised that three-space indents are mandated for anything involving documenting Python in reST, though, since that would mean you'd also have to indent your code samples by three spaces, or else have an editor that supports two different tab widths.)
I don’t remember this being a pain. Maybe it’s because the reST I tend to edit has much more reST indents than Python code example indents, so I don’t mind typing <Tab><Space>.
Also, chances are that you've tried out your sample code (!) and thus copy it from a Python file anyway. Georg
participants (2)
-
Georg Brandl -
Éric Araujo