-
Walk over LocalTabTitle just once looking for percent signs, and doing the appropriate substitution based on the next character. This not only is slightly more performant, but also avoids trouble if one of the substitutions happens to contain a percent sign.
e936c6cb