~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to tools/rst2prettyhtml.py

  • Committer: Aaron Bentley
  • Date: 2006-09-29 20:01:17 UTC
  • mto: This revision was merged to the branch mainline in revision 2127.
  • Revision ID: abentley@panoramicfeedback.com-20060929200117-4623d1a42eae62ea
Make subheadings appear correctly, hide inappropriate menu, fix search

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
import kid
11
11
 
12
12
def kidified_rest(rest_file, template_name):
13
 
    xhtml = publish_file(rest_file, writer_name='html', destination=StringIO())
 
13
    xhtml = publish_file(rest_file, writer_name='html', destination=StringIO(),
 
14
                         settings_overrides={"doctitle_xform": 0} 
 
15
    
 
16
    )
14
17
    xml = XML(xhtml)
15
18
    head = xml.find('{http://www.w3.org/1999/xhtml}head')
16
19
    body = xml.find('{http://www.w3.org/1999/xhtml}body')