comparison MoinMoin/formatter/text_docbook.py @ 1793:2a4caa295346

Eclipse PyDev Check: fixed lots of its errors and warnings
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 23 Feb 2007 13:06:42 +0100
parents 6dd2e29acffe
children 57f12932915f
comparison
equal deleted inserted replaced
1792:c907c2942372 1793:2a4caa295346
155 if on: 155 if on:
156 # try to go to higher level if needed 156 # try to go to higher level if needed
157 if depth <= self.curdepth: 157 if depth <= self.curdepth:
158 # number of levels we want to go higher 158 # number of levels we want to go higher
159 numberOfLevels = self.curdepth-depth + 1 159 numberOfLevels = self.curdepth-depth + 1
160 for i in range(numberOfLevels): 160 for dummy in range(numberOfLevels):
161 #find first non section node 161 #find first non section node
162 while (self.cur.nodeName != "section" and self.cur.nodeName != "article"): 162 while (self.cur.nodeName != "section" and self.cur.nodeName != "article"):
163 self.cur = self.cur.parentNode 163 self.cur = self.cur.parentNode
164 164
165 # I don't understand this code - looks like unnecessary -- maybe it is used to gain some vertical space for large headings? 165 # I don't understand this code - looks like unnecessary -- maybe it is used to gain some vertical space for large headings?