summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ad8c2a8)
The delimiter is two empty comment lines.
if currentPart == self.legal:
if line.strip() == "#": counter += 1
else: counter = 0
if currentPart == self.legal:
if line.strip() == "#": counter += 1
else: counter = 0
- if counter == 2: currentPart = self.doc
if line[0] != "#": currentPart = self.code
currentPart.append(line)
if line[0] != "#": currentPart = self.code
currentPart.append(line)
+ if counter == 2:
+ currentPart = self.doc
+ counter = 0
+
+
if not self.doc:
self.doc = self.legal
self.legal = LineList()
if not self.doc:
self.doc = self.legal
self.legal = LineList()