hassanakbar4 / tractive-test

0 stars 0 forks source link

Missing document title raises exception #328

Closed hassanakbar4 closed 3 years ago

hassanakbar4 commented 7 years ago

component_Version 2 build resolution_fixed type_defect | by brian.e.carpenter@gmail.com


So, I fumbled an edit and had this in my source file:

<p>No problem when generating txt output, but when generating html it hits the exception below, which made diagnosis hard ;-).</p> <p>Traceback (most recent call last): File "/usr/local/bin/xml2rfc", line 11, in <module> 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'</p> <hr /> <p><em>Issue migrated from trac:328 at 2021-10-20 18:24:10 +0500</em></p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/hassanakbar4"><img src="https://avatars.githubusercontent.com/u/78413261?v=4" />hassanakbar4</a> commented <strong> 7 years ago</strong> </div> <div class="markdown-body"> <p><em>@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil}</em> <em>changed status from <code>new</code> to <code>closed</code></em></p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/hassanakbar4"><img src="https://avatars.githubusercontent.com/u/78413261?v=4" />hassanakbar4</a> commented <strong> 7 years ago</strong> </div> <div class="markdown-body"> <p><em>@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil}</em> <em>changed resolution from <code>` to</code>fixed`</em></p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/hassanakbar4"><img src="https://avatars.githubusercontent.com/u/78413261?v=4" />hassanakbar4</a> commented <strong> 7 years ago</strong> </div> <div class="markdown-body"> <p><em>@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil}</em> <em>commented</em></p> <hr /> <p>Fixed in [2296]:</p> <p>Don't let the value of 'title' be None, make it an empty string if that happens. Fixes issue #328</p> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>