Changeset 17567

Show
Ignore:
Timestamp:
08/13/08 15:26:56 (5 years ago)
Author:
hirobe
Message:

空行の扱いを修正

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • platform/trac/plugins/wlwriter/trunk/wlwriter/xhtmltowiki.py

    r17557 r17567  
    7272            if mark is ENTER: 
    7373                if prelinebreak: 
    74                     texts.append(os.linesep) 
     74                    yield mark,(TEXT,'\n',None) 
    7575                prelinebreak = False 
    7676                texts.append( data[1].get('data','')) 
     
    389389        st = HTML(self.bodytoxhtml(xhtml)) |bq|pre|h1|h2|h3|h4|h5|h6|a_img|img\ 
    390390                                    |br|b|i|strong|em|dele|sup|sub|tt|hr|underline|table|ul|ol|dl|word|p|line 
    391         tradata = st.render('xhtml', encoding=None) 
     391        tradata = st.render('text',encoding=None) 
    392392     
    393393        return Markup(tradata).unescape()