update {% to { % and \% or \% to %