Browse Source

Merge pull request #235 from jml/master

Properly encode author in comments
Kyle Fuller 10 years ago
parent
commit
259710ba00
1 changed files with 1 additions and 1 deletions
  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)