diff --git a/gitstats b/gitstats index 552284b..e5cf9ee 100755 --- a/gitstats +++ b/gitstats @@ -1314,7 +1314,8 @@ plot """ plots = [] for a in self.authors_to_plot: i = i + 1 - plots.append("""'lines_of_code_by_author.dat' using 1:%d title "%s" w lines""" % (i, a.replace("\"", "\\\""))) + author = a.replace("\"", "\\\"").replace("`", "") + plots.append("""'lines_of_code_by_author.dat' using 1:%d title "%s" w lines""" % (i, author)) f.write(", ".join(plots)) f.write('\n') @@ -1341,7 +1342,8 @@ plot """ plots = [] for a in self.authors_to_plot: i = i + 1 - plots.append("""'commits_by_author.dat' using 1:%d title "%s" w lines""" % (i, a.replace("\"", "\\\""))) + author = a.replace("\"", "\\\"").replace("`", "") + plots.append("""'commits_by_author.dat' using 1:%d title "%s" w lines""" % (i, author)) f.write(", ".join(plots)) f.write('\n')