mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #5225 from tk0miya/5213_pyspecific
Fix #5213: i18n: sphinx-build crashes if node having tupled-attributed
This commit is contained in:
@@ -56,7 +56,10 @@ def repr_domxml(node, length=80):
|
||||
returns full of DOM XML representation.
|
||||
:return: DOM XML representation
|
||||
"""
|
||||
text = node.asdom().toxml()
|
||||
try:
|
||||
text = node.asdom().toxml()
|
||||
except Exception:
|
||||
text = text_type(node)
|
||||
if length and len(text) > length:
|
||||
text = text[:length] + '...'
|
||||
return text
|
||||
|
||||
Reference in New Issue
Block a user