sensible indenting, fdo#81596 related

Change-Id: If7eb11a950b45793d04837d02f9546a93673fa2f
simplify RewriteMissing() and switch in Add...(), fdo#81596 related

Change-Id: If2ca37e1fda87ce56282fc2d2fc57a0784851139
write TRUE() for 2nd IF() parameter, fdo#81596 related

Change-Id: I52d0b43b19e10bee82109b635b3b7ce4f43650a3