[Moin-user] Re: Paragraph breaks in 1.5.3

M.-A. Lemburg mal at egenix.com
Wed May 3 10:19:02 EDT 2006


>> Hi there,
>>
>> yesterday I finally went through the upgrade cycle from 1.2 to 1.5.3
>> using the migration scripts on our internal wiki. It looked as if
>> everything worked out.
>>
>> However, today I found that the usual "Use one or more blank lines to
>> separate paragraphs." doesn't work anymore - no line breaks are included
>> even if there are multiple blank lines.
> 
> I should add, that this only happens for paragraphs in lists, e.g.
> 
> """
>  * item 1
> 
>  Some long text. Some long text. Some long text. Some long text. Some
> long text. Some long text. Some long text. Some long text. Some long
> text. Some long text. Some long text. Some long text. Some long text.
> Some long text. Some long text. Some long text. Some long text. Some
> long text. Some long text. Some long text. Some long text. Some long
> text. Some long text.
> 
>  Some long text. Some long text. Some long text. Some long text. Some
> long text. Some long text. Some long text. Some long text. Some long
> text. Some long text. Some long text. Some long text. Some long text.
> Some long text. Some long text. Some long text. Some long text. Some
> long text. Some long text. Some long text. Some long text. Some long
> text. Some long text.
> 
>  * item 2 - Some long text. Some long text. Some long text. Some long
> text. Some long text. Some long text. Some long text. Some long text.
> Some long text. Some long text. Some long text. Some long text. Some
> long text. Some long text. Some long text. Some long text. Some long
> text. Some long text. Some long text. Some long text. Some long text.
> Some long text. Some long text.
> 
>  Some long text. Some long text. Some long text. Some long text. Some
> long text. Some long text. Some long text. Some long text. Some long
> text. Some long text. Some long text. Some long text. Some long text.
> Some long text. Some long text. Some long text. Some long text. Some
> long text. Some long text. Some long text. Some long text. Some long
> text. Some long text.
> 
>  Some long text. Some long text. Some long text. Some long text. Some
> long text. Some long text. Some long text. Some long text. Some long
> text. Some long text. Some long text. Some long text. Some long text.
> Some long text. Some long text. Some long text. Some long text. Some
> long text. Some long text. Some long text. Some long text. Some long
> text. Some long text.
> """
> 
> The output looks like this:
> 
> """
>  * item 1 Some long text. Some long text. Some long text. Some long
> text. Some long text. Some long text. Some long text. Some long text.
> Some long text. Some long text. Some long text. Some long text. Some
> long text. Some long text. Some long text. Some long text. Some long
> text. Some long text. Some long text. Some long text. Some long text.
> Some long text. Some long text. Some long text. Some long text. Some
> long text. Some long text. Some long text. Some long text. Some long
> text. Some long text. Some long text. Some long text. Some long text.
> Some long text. Some long text. Some long text. Some long text. Some
> long text. Some long text. Some long text. Some long text. Some long
> text. Some long text. Some long text. Some long text.
> 
>  * item 2 - Some long text. Some long text. Some long text. Some long
> text. Some long text. Some long text. Some long text. Some long text.
> Some long text. Some long text. Some long text. Some long text. Some
> long text. Some long text. Some long text. Some long text. Some long
> text. Some long text. Some long text. Some long text. Some long text.
> Some long text. Some long text. Some long text. Some long text. Some
> long text. Some long text. Some long text. Some long text. Some long
> text. Some long text. Some long text. Some long text. Some long text.
> Some long text. Some long text. Some long text. Some long text. Some
> long text. Some long text. Some long text. Some long text. Some long
> text. Some long text. Some long text. Some long text. Some long text.
> Some long text. Some long text. Some long text. Some long text. Some
> long text. Some long text. Some long text. Some long text. Some long
> text. Some long text. Some long text. Some long text. Some long text.
> Some long text. Some long text. Some long text. Some long text. Some
> long text. Some long text. Some long text. Some long text. Some long text.
> """
> 
>> As a result the pages now look, well, condensed in a way :-)
>>
>> Is this a known bug ?

It appears as if the following change fixes the problem:

--- parser/wiki.py~     2006-05-03 19:16:52.913252147 +0200
+++ parser/wiki.py      2006-05-03 19:16:52.914251845 +0200
@@ -462,7 +462,8 @@
     def _indent_repl(self, match):
         """Handle pure indentation (no - * 1. markup)."""
         result = []
-        if not (self.in_li or self.in_dd):
+        #if not (self.in_li or self.in_dd):
+        if self.in_li or self.in_dd:
             self._close_item(result)
             self.in_li = 1
             css_class = None

>> Another nit I found while testing the wiki after the migration was
>> that the GUI editor would remove empty lines as well. I've disabled
>> it now, but would love to see it keep the empty lines in some
>> future release.
>>
> 
> Thanks,

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, May 03 2006)
>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________

::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::




More information about the Moin-user mailing list