Ueberschriften nun auch im Markdown-Stil
This commit is contained in:
parent
e6496665c6
commit
4807ec5dc3
1 changed files with 2 additions and 2 deletions
|
@ -236,7 +236,7 @@ def get_answer_lines(answer):
|
||||||
is_empty = True
|
is_empty = True
|
||||||
lines = []
|
lines = []
|
||||||
lines.append("")
|
lines.append("")
|
||||||
lines.append("== %s ==" % answer.option.title)
|
lines.append("## %s" % answer.option.title)
|
||||||
if answer.quality:
|
if answer.quality:
|
||||||
is_empty = False
|
is_empty = False
|
||||||
lines.append("Bewertung: %s (%s)" % (answer.quality,
|
lines.append("Bewertung: %s (%s)" % (answer.quality,
|
||||||
|
@ -267,7 +267,7 @@ def get_summary_text(session):
|
||||||
continue
|
continue
|
||||||
answers.sort(key=lambda item: item.option.weight)
|
answers.sort(key=lambda item: item.option.weight)
|
||||||
lines.append("")
|
lines.append("")
|
||||||
lines.append("= %s =" % question.text)
|
lines.append("# %s" % question.text)
|
||||||
for answer in answers:
|
for answer in answers:
|
||||||
lines.extend(get_answer_lines(answer))
|
lines.extend(get_answer_lines(answer))
|
||||||
lines.append("")
|
lines.append("")
|
||||||
|
|
Loading…
Reference in a new issue