Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5f6f45 commit 457c0abCopy full SHA for 457c0ab
1 file changed
Misc/renumber.py
@@ -43,10 +43,12 @@ def main():
43
if n < 0: n = newquestionprog.match(line) - 3
44
if n >= 0:
45
question = question + 1
46
- line = '%d.%d. '%(chapter, question) + line[n:]
+ number = '%d.%d. '%(chapter, question)
47
+ line = number + line[n:]
48
lines[i] = line
49
questions.append(' ' + line)
50
# Add up to 4 continuations of the question
51
+ n = len(number)
52
for j in range(i+1, i+5):
53
if blankprog.match(lines[j]) >= 0:
54
break
0 commit comments