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
|
||||
lines = []
|
||||
lines.append("")
|
||||
lines.append("== %s ==" % answer.option.title)
|
||||
lines.append("## %s" % answer.option.title)
|
||||
if answer.quality:
|
||||
is_empty = False
|
||||
lines.append("Bewertung: %s (%s)" % (answer.quality,
|
||||
|
@ -267,7 +267,7 @@ def get_summary_text(session):
|
|||
continue
|
||||
answers.sort(key=lambda item: item.option.weight)
|
||||
lines.append("")
|
||||
lines.append("= %s =" % question.text)
|
||||
lines.append("# %s" % question.text)
|
||||
for answer in answers:
|
||||
lines.extend(get_answer_lines(answer))
|
||||
lines.append("")
|
||||
|
|
Loading…
Reference in a new issue