Attempt to escape quotation marks in generated README.md.

This commit is contained in:
Sebastian Lackner
2014-07-26 03:41:47 +02:00
parent 145e5212b3
commit 600d6d0b87
2 changed files with 3 additions and 2 deletions

View File

@ -450,7 +450,8 @@ def generate_readme(all_patches, fp):
if bugid is not None: all_bugs.append((bugid, bugname, description))
for (bugid, bugname, description) in sorted(all_bugs):
if description is None: description = bugname
yield "%s ([Wine Bug #%d](http://bugs.winehq.org/show_bug.cgi?id=%d \"%s\"))" % (description, bugid, bugid, bugname)
yield "%s ([Wine Bug #%d](http://bugs.winehq.org/show_bug.cgi?id=%d \"%s\"))" % \
(description, bugid, bugid, bugname.replace("\\", "\\\\").replace("\"", "\\\""))
# Get list of all fixes
def _all_fixes():