Closed maixuanhan closed 7 years ago
@maixuanhan Yes looks like an issue. Good catch.
Can you try patching the following diffs to see if this fixes this issue?
diff --git a/server/explorer/plugins/cxml.py b/server/explorer/plugins/cxml.py
index 7f4945d..e8d1a70 100644
--- a/server/explorer/plugins/cxml.py
+++ b/server/explorer/plugins/cxml.py
@@ -278,7 +278,7 @@ class Cxml:
description = self.get_description(s)
if description != '':
desc = description.replace('<', '<')
- desc += description.replace('>', '>')
+ desc = desc.replace('>', '>')
cdata = ET.Element('![CDATA[')
cdata.text = desc
desc_node = ET.Element('description')
Here is a screenshot showing the repetition issue is fixed.
Fixed
@maixuanhan Tx for trying the fix. I will get the issue fix committed soon.
In Yang detailed information section (panel on the right), the
Description
of any node is duplicated (means Description is shown twice)