Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.python Subject: Re: Can I copy/paste Python code? Date: Tue, 21 Jul 2015 17:12:13 +0100 Organization: A noiseless patient Spider Lines: 24 Message-ID: <87si8h5w2q.fsf@bsb.me.uk> References: <0f0c6018-50e7-4e95-a798-313d767ce177@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="19526"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18mJWH1cSb6EOda3yXScPw37FceQtWtnlA=" Cancel-Lock: sha1:QbY6R7KGFdUkExWyd+TyJ4Wzlqk= sha1:0MJIaZuOXvVu2Ya08YmLr1du/vQ= X-BSB-Auth: 1.453985a37074755f7877.20150721171213BST.87si8h5w2q.fsf@bsb.me.uk Xref: csiph.com comp.lang.python:94296 Christian Gollwitzer writes: > On 21.07.2015 04:55, Chris Angelico wrote: >> On Tue, Jul 21, 2015 at 12:49 PM, ryguy7272 wrote: >>> [...] Every time I paste in any kind of code, it seems >>> like everything is immediately left-justified, and then nothing >>> works. >> Sounds like a flaw in the PDF - it creates indentation in some way >> other than leading spaces/tabs. > > PDF never uses tabs and spaces for indentation. In a PDF file, > typically all words are placed using a drawing operator individually, > the space is made up by your eyes when see the file. It's not really a PDF issue. It's to do with how the document is produced. I've just looked at a few PDF files and I have found all three layout methods used for code: positioning, spaces and tabs. Of course those that use spaces may be violating some PDF rule or other, but such files certainly exist in the wild. -- Ben.