diff options
Diffstat (limited to 'bs4/element.py')
-rw-r--r-- | bs4/element.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bs4/element.py b/bs4/element.py index cdc9e36..e50f639 100644 --- a/bs4/element.py +++ b/bs4/element.py @@ -507,7 +507,9 @@ class Doctype(NavigableString): value = name if pub_id is not None: value += ' PUBLIC "%s"' % pub_id - if system_id is not None: + if system_id is not None: + value += ' "%s"' % system_id + elif system_id is not None: value += ' SYSTEM "%s"' % system_id return Doctype(value) |