From 0de5324c0740ed38c9801b20e8a94847189aaa29 Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Wed, 30 Mar 2016 12:12:28 +0200 Subject: [PATCH] 9352: TypeError: 'str' does not support the buffer interface --- gramps/plugins/webreport/narrativeweb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/webreport/narrativeweb.py b/gramps/plugins/webreport/narrativeweb.py index 922c1f48d..315286c73 100644 --- a/gramps/plugins/webreport/narrativeweb.py +++ b/gramps/plugins/webreport/narrativeweb.py @@ -454,7 +454,7 @@ def html_escape(text): """Convert the text and replace some characters with a &# variant.""" # First single characters, no quotes - text = escape(text) + text = escape(str(text)) # Deal with double quotes. m = _html_dbl_quotes.match(text) @@ -5366,7 +5366,7 @@ class PersonPages(BasePage): elif first_surname: first_surname = False tcell += Html("a", html_escape(surname), - title = "Surnames " + surname) + title = "Surnames " + str(surname)) else: tcell += " "