[moin-devel] Simple (?) question: wiki mardown to HTML

Christoph monochromec at gmail.com
Thu Jul 27 08:16:23 EDT 2017


Hi Paul,

Thanks for the hint - I indeed meant markup and not markdown.

Regarding the strip: the sample code that I posted was an interim snapshot - the intention was to remove trailing 
newlines which screwed up subsequent code not part of the snippet.

But instead of calling strip() the following works just as well:

                                for line in f:
					if line	[-1] == '\n':
						l0 = line [:-1]
                                        else:
						l0 = line
                                        lines.append(l0)


Thanks again for your input!
-- 

This email account is monitored seven days a week.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/moin-devel/attachments/20170727/54ec66a5/attachment.sig>


More information about the moin-devel mailing list