changeset 205:57078169052b

dom converters: cosmetic changes to comments/whitespace
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 30 Apr 2011 18:54:05 +0200
parents af274db0ed53
children 0ff3c43a0a26
files MoinMoin/converter/__init__.py MoinMoin/converter/_args.py MoinMoin/converter/creole_in.py MoinMoin/converter/docbook_in.py MoinMoin/converter/docbook_out.py MoinMoin/converter/highlight.py MoinMoin/converter/html_in.py MoinMoin/converter/html_out.py MoinMoin/converter/include.py MoinMoin/converter/link.py MoinMoin/converter/macro.py MoinMoin/converter/mediawiki_in.py MoinMoin/converter/moinwiki19_in.py MoinMoin/converter/moinwiki_in.py MoinMoin/converter/moinwiki_out.py MoinMoin/converter/rst_in.py MoinMoin/converter/rst_out.py MoinMoin/converter/smiley.py
diffstat 18 files changed, 38 insertions(+), 22 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/converter/__init__.py	Sat Apr 30 16:55:44 2011 +0200
+++ b/MoinMoin/converter/__init__.py	Sat Apr 30 18:54:05 2011 +0200
@@ -106,3 +106,4 @@
 
 default_registry = RegistryConverter()
 _load()
+
--- a/MoinMoin/converter/_args.py	Sat Apr 30 16:55:44 2011 +0200
+++ b/MoinMoin/converter/_args.py	Sat Apr 30 18:54:05 2011 +0200
@@ -6,7 +6,6 @@
 """
 
 
-
 class Arguments(object):
     """
     Represent an argument list that may contain positional or keyword args.
--- a/MoinMoin/converter/creole_in.py	Sat Apr 30 16:55:44 2011 +0200
+++ b/MoinMoin/converter/creole_in.py	Sat Apr 30 18:54:05 2011 +0200
@@ -4,22 +4,22 @@
 # License: GNU GPL v2 (or any later version), see LICENSE.txt for details.
 
 """
-    MoinMoin - Creole input converter
-
-    See http://wikicreole.org/ for latest specs.
-
-    Notes:
+MoinMoin - Creole input converter
 
-    * No markup allowed in headings.
-      Creole 1.0 does not require us to support this.
-    * No markup allowed in table headings.
-      Creole 1.0 does not require us to support this.
-    * No (non-bracketed) generic url recognition: this is "mission impossible"
-      except if you want to risk lots of false positives. Only known protocols
-      are recognized.
-    * We do not allow ":" before "//" italic markup to avoid urls with
-      unrecognized schemes (like wtf://server/path) triggering italic rendering
-      for the rest of the paragraph.
+See http://wikicreole.org/ for latest specs.
+
+Notes:
+
+- No markup allowed in headings.
+  Creole 1.0 does not require us to support this.
+- No markup allowed in table headings.
+  Creole 1.0 does not require us to support this.
+- No (non-bracketed) generic url recognition: this is "mission impossible"
+  except if you want to risk lots of false positives. Only known protocols
+  are recognized.
+- We do not allow ":" before "//" italic markup to avoid urls with
+  unrecognized schemes (like wtf://server/path) triggering italic rendering
+  for the rest of the paragraph.
 """
 
 
@@ -702,3 +702,4 @@
 from MoinMoin.util.mime import Type, type_moin_document, type_moin_creole
 default_registry.register(Converter.factory, type_moin_creole, type_moin_document)
 default_registry.register(Converter.factory, Type('x-moin/format;name=creole'), type_moin_document)
+
--- a/MoinMoin/converter/docbook_in.py	Sat Apr 30 16:55:44 2011 +0200
+++ b/MoinMoin/converter/docbook_in.py	Sat Apr 30 18:54:05 2011 +0200
@@ -10,7 +10,7 @@
 Some elements of DocBook v4 specification are also supported
 for backward compatibility:
 
-  * ulink
+- ulink
 """
 
 
@@ -1157,3 +1157,4 @@
 from . import default_registry
 from MoinMoin.util.mime import Type, type_moin_document
 default_registry.register(Converter._factory, Type('application/docbook+xml'), type_moin_document)
+
--- a/MoinMoin/converter/docbook_out.py	Sat Apr 30 16:55:44 2011 +0200
+++ b/MoinMoin/converter/docbook_out.py	Sat Apr 30 18:54:05 2011 +0200
@@ -4,6 +4,7 @@
 
 """
 MoinMoin - DocBook output converter
+
 Converts an internal document tree into a DocBook v5 document.
 """
 
@@ -516,3 +517,4 @@
 from MoinMoin.util.mime import Type, type_moin_document
 default_registry.register(Converter._factory, type_moin_document,
     Type('application/docbook+xml'))
+
--- a/MoinMoin/converter/highlight.py	Sat Apr 30 16:55:44 2011 +0200
+++ b/MoinMoin/converter/highlight.py	Sat Apr 30 18:54:05 2011 +0200
@@ -57,3 +57,4 @@
 from . import default_registry
 from MoinMoin.util.mime import Type, type_moin_document
 default_registry.register(Converter._factory, type_moin_document, type_moin_document)
+
--- a/MoinMoin/converter/html_in.py	Sat Apr 30 16:55:44 2011 +0200
+++ b/MoinMoin/converter/html_in.py	Sat Apr 30 18:54:05 2011 +0200
@@ -3,6 +3,7 @@
 
 """
 MoinMoin - HTML input converter
+
 Converts an XHTML document into an internal document tree.
 
 TODO : Add support for style
@@ -551,3 +552,4 @@
 from . import default_registry
 from MoinMoin.util.mime import Type, type_moin_document
 default_registry.register(Converter._factory, Type('text/html'), type_moin_document)
+
--- a/MoinMoin/converter/html_out.py	Sat Apr 30 16:55:44 2011 +0200
+++ b/MoinMoin/converter/html_out.py	Sat Apr 30 18:54:05 2011 +0200
@@ -706,3 +706,4 @@
 from . import default_registry
 from MoinMoin.util.mime import Type, type_moin_document
 default_registry.register(ConverterPage._factory, type_moin_document, Type('application/x-xhtml-moin-page'))
+
--- a/MoinMoin/converter/include.py	Sat Apr 30 16:55:44 2011 +0200
+++ b/MoinMoin/converter/include.py	Sat Apr 30 18:54:05 2011 +0200
@@ -5,7 +5,7 @@
 """
 MoinMoin - Include handling
 
-Expands include elements in a internal Moin document.
+Expands include elements in an internal Moin document.
 """
 
 
@@ -268,3 +268,4 @@
 from . import default_registry
 from MoinMoin.util.mime import Type, type_moin_document
 default_registry.register(Converter._factory, type_moin_document, type_moin_document)
+
--- a/MoinMoin/converter/link.py	Sat Apr 30 16:55:44 2011 +0200
+++ b/MoinMoin/converter/link.py	Sat Apr 30 18:54:05 2011 +0200
@@ -4,7 +4,7 @@
 """
 MoinMoin - Link converter
 
-Expands all links in a internal Moin document. This includes interwiki and
+Expands all links in an internal Moin document, including interwiki and
 special wiki links.
 """
 
--- a/MoinMoin/converter/macro.py	Sat Apr 30 16:55:44 2011 +0200
+++ b/MoinMoin/converter/macro.py	Sat Apr 30 18:54:05 2011 +0200
@@ -4,7 +4,7 @@
 """
 MoinMoin - Macro handling
 
-Expands all macro elements in a internal Moin document.
+Expands all macro elements in an internal Moin document.
 """
 
 
@@ -70,9 +70,8 @@
         cls = plugins.importPlugin(app.cfg, 'macro', name, function='Macro')
 
         try:
-            macro = cls() # XXX refactor all macros so they are OK without "request"
+            macro = cls()
             ret = macro((), args, page, alt, context_block)
-
             elem_body.append(ret)
         except Exception as e:
             # we do not want that a faulty macro aborts rendering of the page
@@ -112,3 +111,4 @@
 from . import default_registry
 from MoinMoin.util.mime import Type, type_moin_document
 default_registry.register(Converter._factory, type_moin_document, type_moin_document)
+
--- a/MoinMoin/converter/mediawiki_in.py	Sat Apr 30 16:55:44 2011 +0200
+++ b/MoinMoin/converter/mediawiki_in.py	Sat Apr 30 18:54:05 2011 +0200
@@ -966,3 +966,4 @@
 from MoinMoin.util.mime import Type, type_moin_document
 default_registry.register(Converter.factory, Type('x-moin/format;name=mediawiki'), type_moin_document)
 default_registry.register(Converter.factory, Type('text/x-mediawiki'), type_moin_document)
+
--- a/MoinMoin/converter/moinwiki19_in.py	Sat Apr 30 16:55:44 2011 +0200
+++ b/MoinMoin/converter/moinwiki19_in.py	Sat Apr 30 18:54:05 2011 +0200
@@ -164,3 +164,4 @@
 from MoinMoin.util.mime import Type, type_moin_document, type_moin_wiki
 default_registry.register(ConverterFormat19.factory, Type('text/x.moin.wiki;format=1.9'), type_moin_document)
 default_registry.register(ConverterFormat19.factory, Type('x-moin/format;name=wiki;format=1.9'), type_moin_document)
+
--- a/MoinMoin/converter/moinwiki_in.py	Sat Apr 30 16:55:44 2011 +0200
+++ b/MoinMoin/converter/moinwiki_in.py	Sat Apr 30 18:54:05 2011 +0200
@@ -1111,3 +1111,4 @@
 from MoinMoin.util.mime import Type, type_moin_document, type_moin_wiki
 default_registry.register(Converter.factory, type_moin_wiki, type_moin_document)
 default_registry.register(Converter.factory, Type('x-moin/format;name=wiki'), type_moin_document)
+
--- a/MoinMoin/converter/moinwiki_out.py	Sat Apr 30 16:55:44 2011 +0200
+++ b/MoinMoin/converter/moinwiki_out.py	Sat Apr 30 18:54:05 2011 +0200
@@ -510,3 +510,4 @@
 from MoinMoin.util.mime import Type, type_moin_document, type_moin_wiki
 default_registry.register(Converter.factory, type_moin_document, type_moin_wiki)
 default_registry.register(Converter.factory, type_moin_document, Type('x-moin/format;name=wiki'))
+
--- a/MoinMoin/converter/rst_in.py	Sat Apr 30 16:55:44 2011 +0200
+++ b/MoinMoin/converter/rst_in.py	Sat Apr 30 18:54:05 2011 +0200
@@ -774,3 +774,4 @@
                           Type('text/x-rst'), type_moin_document)
 default_registry.register(Converter.factory,
                           Type('x-moin/format;name=rst'), type_moin_document)
+
--- a/MoinMoin/converter/rst_out.py	Sat Apr 30 16:55:44 2011 +0200
+++ b/MoinMoin/converter/rst_out.py	Sat Apr 30 18:54:05 2011 +0200
@@ -790,3 +790,4 @@
 default_registry.register(Converter.factory,
                           type_moin_document,
                           Type('x-moin/format;name=rst'))
+
--- a/MoinMoin/converter/smiley.py	Sat Apr 30 16:55:44 2011 +0200
+++ b/MoinMoin/converter/smiley.py	Sat Apr 30 18:54:05 2011 +0200
@@ -136,3 +136,4 @@
 from . import default_registry
 from MoinMoin.util.mime import type_moin_document
 default_registry.register(Converter._factory, type_moin_document, type_moin_document)
+