Closed hassanakbar4 closed 3 years ago
@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} changed status from new
to closed
@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} changed resolution from ` to
fixed`
@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} commented
Fixed in [2296]:
Don't let the value of 'title' be None, make it an empty string if that happens. Fixes issue #328
component_Version 2 build
resolution_fixed
type_defect
| by brian.e.carpenter@gmail.comSo, I fumbled an edit and had this in my source file:
No problem when generating txt output, but when generating html it hits the exception below, which made diagnosis hard ;-).
Traceback (most recent call last): File "/usr/local/bin/xml2rfc", line 11, in
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/xml2rfc-2.5.2.dev0-py2.7.egg/xml2rfc/run.py", line 213, in main
htmlwriter.write(filename)
File "/usr/local/lib/python2.7/dist-packages/xml2rfc-2.5.2.dev0-py2.7.egg/xml2rfc/writers/base.py", line 1237, in write
self.post_rendering()
File "/usr/local/lib/python2.7/dist-packages/xml2rfc-2.5.2.dev0-py2.7.egg/xml2rfc/writers/html.py", line 790, in post_rendering
'title': cgi.escape(title),
File "/usr/lib/python2.7/cgi.py", line 1043, in escape
s = s.replace("&", "&") # Must be done first!
AttributeError: 'NoneType' object has no attribute 'replace'
Issue migrated from trac:328 at 2021-10-20 18:24:10 +0500