Spaces ignored in <source> in PDF generation leading to embarrassing document :)

0 views
Skip to first unread message

Swaroop C H

unread,
Jan 15, 2009, 9:42:36 PM1/15/09
to mwlib / pediapress
Hello,

In my open source Python book, there is an example which demonstrates that wrong indentation can lead to subtle programming errors.
Unfortunately, mwlib strips out that space at the beginning of the line which means the example actually works!
This has left many readers confused.

The specific case:
    http://www.swaroopch.com/notes/Python_en:Basics#Indentation
And generated PDF:
    Page 32 of http://www.swaroopch.com/files/byteofpython/byte_of_python_v191.pdf

Any ideas on how to fix this? :)

Thanks in advance.
--
Regards,
Swaroop

Weblog and Books : http://www.swaroopch.com

Volker Haas

unread,
Jan 16, 2009, 5:34:58 AM1/16/09
to mw...@googlegroups.com
Hi Swaroop,

thanks for pointing out that issue.
Actually that bug only occured when the line to be printed had to be
split into multiple lines.
It is fixed in the latest trunk version.

Regards,
Volker
--
volker haas brainbot technologies ag
fon +49 6131 2116394 boppstraße 64
fax +49 6131 2116392 55118 mainz
volke...@brainbot.com http://www.brainbot.com/

Swaroop C H

unread,
Jan 16, 2009, 8:11:44 AM1/16/09
to mw...@googlegroups.com
Thanks Volker!
Reply all
Reply to author
Forward
0 new messages