by Mike Driscoll
For GitHub links you can use their own shortener, https://git.io/
@Aleksey - That is an interesting possibility.
@Osrosk - That's an excellent question that I don't know the answer to. Besides, I am writing the book in Markdown, so that doesn't actually apply at the moment.
You could probably use QR-codes instead of shortened URLs for the print version.
So... is it possible to create a pdf in Reportlab that separates the line numbers from the code in such a way that it is possible to just copy the code without getting the line numbers? ;-)