summaryrefslogtreecommitdiffstats
path: root/Doc/tools/sgmlconv/esis2sgml.py
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/tools/sgmlconv/esis2sgml.py')
-rwxr-xr-xDoc/tools/sgmlconv/esis2sgml.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/tools/sgmlconv/esis2sgml.py b/Doc/tools/sgmlconv/esis2sgml.py
index c43ddbc..762e5ff 100755
--- a/Doc/tools/sgmlconv/esis2sgml.py
+++ b/Doc/tools/sgmlconv/esis2sgml.py
@@ -32,7 +32,10 @@ def format_attrs(attrs, xml=0):
if name == value and isnmtoken(value):
s = "%s %s" % (s, value)
elif istoken(value):
- s = "%s %s=%s" % (s, name, value)
+ if value == "no" + name:
+ s = "%s %s" % (s, value)
+ else:
+ s = "%s %s=%s" % (s, name, value)
else:
s = '%s %s="%s"' % (s, name, escape(value))
return s