[ZCM] [ZC] 1770/ 4 Comment "Restructured text with single subtitle does not render"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Thu Jun 9 22:44:22 EDT 2005


Issue #1770 Update (Comment) "Restructured text with single subtitle does not render"
 Status Pending, Zope/bug medium
To followup, visit:
  http://www.zope.org/Collectors/Zope/1770

==============================================================
= Comment - Entry #4 by ajung on Jun 9, 2005 10:44 pm

I wonder why I don't see any checkin messages on the mailing list
________________________________________
= Comment - Entry #3 by gotcha on Jun 9, 2005 3:47 pm

fix plus test checked in before 2.8.0

(I do not have permissions to close this item)
________________________________________
= Comment - Entry #2 by gotcha on May 3, 2005 11:03 am

    header = '<h%(level)s class="title">%(title)s</h%(level)s>\n' % {
                  'level': initial_header_level,
                  'title': parts['title'],
             }

    subheader = '<h%(level)s class="subtitle">%(subtitle)s</h%(level)s>\n' % {
                  'level': initial_header_level+1,
                  'subtitle': parts['subtitle'],
             }
    
    body = '%(docinfo)s%(body)s' % {
                  'docinfo': parts['docinfo'],
                  'body': parts['body'],
             }

    output = ''
    if parts['title']:
        output = output + header
    if parts['subtitle']:
        output = output + subheader
    output = output + body


The code hereabove should replace lines 136-149 of reStructuredText/__init__.py
________________________________________
= Request - Entry #1 by gotcha on May 3, 2005 10:58 am

 title
 -----
 subtitle
 ++++++++
 text


The rest input hereabove gets outputted without the subtitle.
==============================================================



More information about the Zope-Collector-Monitor mailing list