On Tue, Jul 21, 2015 at 12:49 PM, ryguy7272 <ryanshu...@gmail.com> wrote:
> I'm trying to copy some Python code from a PDF book that I'm reading.  I want 
> to test out the code, and I can copy it, but when I paste it into the Shell, 
> everything is all screwed up because of the indentation. Every time I paste 
> in any kind of code, it seems like everything is immediately left-justified, 
> and then nothing works.
>
> Any idea how to make this work easily?  Without re-typing hundreds of lines 
> of code...

Sounds like a flaw in the PDF - it creates indentation in some way
other than leading spaces/tabs. See if the PDF has a corresponding
file of ready-to-go code, that might save you some trouble.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to