On 10.02.2013 13:23, Michael Foord wrote: > > On 10 Feb 2013, at 06:57, Tannyr <tan...@gmail.com> wrote: > >> Source: http://wiki.python.org/moin/SimplePrograms >> >> Description: The '8 line' example program is not displaying properly. >> Missing surrounding 'code box'. >> >> >> Current View: >> {{{#!/usr/bin/env python # This program adds up integers in the command line >> import sys try: >> >> • total = sum(int(arg) for arg in sys.argv[1:]) print 'sum =', total >> except ValueError: >> >> • print 'Please supply integer arguments' >> }}} >> > > I've "fixed" it - however the wiki still seems to strip the "#!/usr/bin/env > python" line.
That's normal. If you put a # on the first line of a preformatted section, moin interprets this as parser directive: http://wiki.python.org/moin/HelpOnParsers If you still want to have the line to show up, you need to place it on the second line. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Feb 10 2013) >>> Python Projects, Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope/Plone.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::::: Try our mxODBC.Connect Python Database Interface for free ! :::::: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 http://www.egenix.com/company/contact/ _______________________________________________ pydotorg-www mailing list pydotorg-www@python.org http://mail.python.org/mailman/listinfo/pydotorg-www