diff options
-rwxr-xr-x | Doc/tools/sgmlconv/esis2sgml.py | 5 |
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 |