Bug squashing

Frédéric Brin <[email protected]>
Newsgroups gmane.comp.web.wiki.moin.devel
Message-ID <[email protected]>
Moin,

Well I promised to do a little bit of work on moin !
Here are two small patches included:

+ move <br> to <br /> for future xhtml compliance
+ Remove a small bug in the generated lists (all lists)

Well, tell me when it's time to switch to utf-8, I am your man (for
french translation also 8) 

-- 
Frédéric Brin <[email protected]>
liste_html_compliance.patch (text/x-patch, 366 B)
--- orig/MoinMoin/parser/wiki.py
+++ mod/MoinMoin/parser/wiki.py
@@ -751,6 +751,7 @@
                 open = open + self.formatter.definition_list(1)
             else:
                 open = open + self.formatter.bullet_list(1)
+            self.inhibit_p = 1
             self.first_list_item = 1
 
         # If list level changes, close an open table
xhtml_br.patch (text/x-patch, 403 B)
--- orig/MoinMoin/parser/plain.py
+++ mod/MoinMoin/parser/plain.py
@@ -34,7 +34,7 @@
         #!!! send each line via the usual formatter calls
         text = wikiutil.escape(self.raw)
         text = text.expandtabs()
-        text = text.replace('\n', '<br>\n')
+        text = text.replace('\n', '<br />\n')
         text = text.replace(' ', '&nbsp;')
         self.request.write(text)
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQA/+tD2Fh9Ta6U1t1MRAhIlAKCGDdH1jOr8bci+NfyYwMsgANMtpACfXhhw
h9TkUhDkim7W96n/h7scWQw=
=+TTs
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.