From: Mike Bayer Date: Mon, 16 Oct 2006 01:32:50 +0000 (+0000) Subject: apparently re.S makes things go b00m X-Git-Tag: rel_0_3_0~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=738a210812dfb104b83e5d07ab8342187d411543;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git apparently re.S makes things go b00m --- diff --git a/doc/build/components/formatting.myt b/doc/build/components/formatting.myt index 53575bf13e..9894b25cd6 100644 --- a/doc/build/components/formatting.myt +++ b/doc/build/components/formatting.myt @@ -187,7 +187,7 @@ <%method formatplain> <%filter> import re - f = re.sub(r'\n[\s\t]*\n[\s\t]*', '

\n

', f, re.S) + f = re.sub(r'\n[\s\t]*\n[\s\t]*', '

\n

', f) f = "

" + f + "

" return f diff --git a/doc/build/components/pydoc.myt b/doc/build/components/pydoc.myt index d90f41ef70..3314fa447a 100644 --- a/doc/build/components/pydoc.myt +++ b/doc/build/components/pydoc.myt @@ -1,7 +1,5 @@ <%global> - import re, types, string, docstring - def format_paragraphs(text): - return re.sub(r'([_\w])\n([_\w])', r'\1 \2', text or '', re.S) + import docstring <%method obj_doc> @@ -10,7 +8,7 @@ <&|doclib.myt:item, name=obj.name, description=obj.description &> -<&|formatting.myt:formatplain&><% format_paragraphs(obj.doc) %> +<&|formatting.myt:formatplain&><% obj.doc %> % if not obj.isclass and obj.functions: <&|doclib.myt:item, name="modfunc", description="Module Functions" &> @@ -48,7 +46,7 @@ <%method function_doc> <%args>func <&|formatting.myt:function_doc, name=func.name, link=func.link, arglist=func.arglist &> - <&|formatting.myt:formatplain&><% format_paragraphs(func.doc) %> + <&|formatting.myt:formatplain&><% func.doc %> @@ -58,6 +56,6 @@ prop <&|formatting.myt:member_doc, name=prop.name, link=prop.link &> - <&|formatting.myt:formatplain&><% format_paragraphs(prop.doc) %> + <&|formatting.myt:formatplain&><% prop.doc %>