Make all used styles visible in Word UI

This commit is contained in:
Kovid Goyal 2015-03-24 18:22:57 +05:30
parent 8c827eefc6
commit d6f8b9501b

View File

@ -79,9 +79,9 @@ class DOCXStyle(object):
style.append(makeelement(style, 'name', val=self.name))
if self is normal_style:
style.set(w('default'), '1')
style.append(makeelement(style, 'qFormat'))
else:
style.append(makeelement(style, 'basedOn', val=normal_style.id))
style.append(makeelement(style, 'qFormat'))
styles.append(style)
return style