ソースを参照

Merge pull request #235 from jml/master

Properly encode author in comments
Kyle Fuller 10 年 前
コミット
259710ba00
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1 1
      pelican_comment_system/comment.py

+ 1 - 1
pelican_comment_system/comment.py

@@ -15,7 +15,7 @@ class Comment(Content):
 		self.id = id
 		self.replies = []
 		self.avatar = avatar
-		self.title = "Posted by:  " + str(metadata['author'])
+		self.title = "Posted by:  {}".format(metadata['author'])
 
 	def addReply(self, comment):
 		self.replies.append(comment)