Math font macros in superscripts now enclosed in braces.  Example:
1^\mathsf{W} becomes 1^{\mathsf{W}}.

This makes no difference to the resulting typeset material, but makes
it possible to use ^ as a *macro* rather than the math superscript
token.  There are some packages that make ^ an active character to
make superscript (and subscript) handling more flexible.  The ePub
conversion class is one of these.
Another math font in a superscript that could do with being in braces.
Merge pull request #325 from loopspace/upstream

enclose math font commands in superscripts in braces.
eliminate a superfluous space
Merge branch 'master' of github.com:HoTT/book