Commit 457c0ab3 authored by Guido van Rossum's avatar Guido van Rossum

Fix bug in formatting of new questions

parent e5f6f45a
......@@ -43,10 +43,12 @@ def main():
if n < 0: n = newquestionprog.match(line) - 3
if n >= 0:
question = question + 1
line = '%d.%d. '%(chapter, question) + line[n:]
number = '%d.%d. '%(chapter, question)
line = number + line[n:]
lines[i] = line
questions.append(' ' + line)
# Add up to 4 continuations of the question
n = len(number)
for j in range(i+1, i+5):
if blankprog.match(lines[j]) >= 0:
break
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment