# HG changeset patch # User telesto # Date 1513891671 -3600 # Thu Dec 21 22:27:51 2017 +0100 # Node ID dede6902c4af6efbd39c35525fbb6f09b408b42d # Parent e9e8e099453b3fab07719725f7622ec3a587e9b9 use Style.setAttrs in Style.Normal diff --git a/style.go b/style.go --- a/style.go +++ b/style.go @@ -112,7 +112,7 @@ // Normal returns the style with all attributes disabled. func (s Style) Normal() Style { - return s &^ Style(attrAll) + return s.setAttrs(attrAll, false) } // Bold returns a new style based on s, with the bold attribute set