From: Fred Drake Date: Fri, 29 Jan 1999 21:35:50 +0000 (+0000) Subject: Be a little smarter on some attribute values, making an assumption about X-Git-Tag: v1.5.2b2~202 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=279ca75a5be39678d38bff6e2497b1f185658c0a;p=thirdparty%2FPython%2Fcpython.git Be a little smarter on some attribute values, making an assumption about the DTD. --- diff --git a/Doc/tools/sgmlconv/esis2sgml.py b/Doc/tools/sgmlconv/esis2sgml.py index c43ddbc56da5..762e5ffb4f20 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