fixed spec dependence attribute writing. Fixes #11686 (#11776)

This commit is contained in:
Gregory Lee 2019-06-18 19:13:12 -07:00 committed by Greg Becker
parent 2287dd6165
commit 8706ac1479

View file

@ -3130,6 +3130,7 @@ def write(s, c=None):
cwrite(f, stream=out, color=color)
def write_attribute(spec, attribute, color):
current = spec
if attribute.startswith('^'):
attribute = attribute[1:]
dep, attribute = attribute.split('.', 1)
@ -3140,7 +3141,6 @@ def write_attribute(spec, attribute, color):
'Format string attributes must be non-empty')
attribute = attribute.lower()
current = spec
sig = ''
if attribute[0] in '@%/':
# color sigils that are inside braces