Skip to content

Commit

Permalink
Add @BeckyDTP 's solution for checking for both attribute value quote…
Browse files Browse the repository at this point in the history
…s being missing in sanitycheck.py
  • Loading branch information
dougmassay authored Oct 16, 2024
1 parent 293db7e commit d7d5795
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Resource_Files/python3lib/sanitycheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ def parsetag(self, s):
self.has_error = True
return None, None, None
val = s[b:p]
error_msg = 'Attribute "' + aname + '" has missing quotes surrounding the value'
self.errors.append((self.tag_start[0], self.tag_start[1], error_msg))
self.has_error = True
return None, None, None
tattr[aname] = val
# label beginning and single tags
if ttype is None:
Expand Down

0 comments on commit d7d5795

Please sign in to comment.