comparison MoinMoin/formatter/text_html.py @ 166:a5a8eaf67936

formatter heading level n now renders as hn, cleaned up hn css imported from: moin--main--1.5--patch-168
author Thomas Waldmann <tw@waldmann-edv.de>
date Sun, 30 Oct 2005 21:15:11 +0000
parents b19525bf0cf6
children 826780dc1607
comparison
equal deleted inserted replaced
165:4f45bb113404 166:a5a8eaf67936
704 self._show_section_numbers = 1 704 self._show_section_numbers = 1
705 elif numbering in ['2', '3', '4', '5', '6']: 705 elif numbering in ['2', '3', '4', '5', '6']:
706 # explicit base level for section number display 706 # explicit base level for section number display
707 self._show_section_numbers = int(numbering) 707 self._show_section_numbers = int(numbering)
708 708
709 heading_depth = depth + 1 709 heading_depth = depth # + 1
710 710
711 # closing tag, with empty line after, to make source more readable 711 # closing tag, with empty line after, to make source more readable
712 if not on: 712 if not on:
713 return self.close('h%d' % heading_depth) + '\n' 713 return self.close('h%d' % heading_depth) + '\n'
714 714