Ueberschriften nun auch im Markdown-Stil

This commit is contained in:
lars 2012-08-16 21:05:49 +00:00
parent e6496665c6
commit 4807ec5dc3

View file

@ -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("")