Fix @ sign in e-mail address of the PDF resume

This commit is contained in:
Gergely Polonkai 2014-06-22 15:42:05 +00:00
parent 27c2caf47c
commit 5f5bfb7854

View File

@ -17,7 +17,7 @@ def resumepdf(request):
body = render_to_string('basics/resume.html', { body = render_to_string('basics/resume.html', {
'resume_link': resumelink(request), 'resume_link': resumelink(request),
'pdf': True 'pdf': True
}) }).replace('<span class="at-obfuscation"></span>', '@')
dst = StringIO() dst = StringIO()
pdf = pisa.CreatePDF(body, dst) pdf = pisa.CreatePDF(body, dst)
pdf_data = dst.getvalue() pdf_data = dst.getvalue()