Every ordinance or resolution repealing a previous ordinance or resolution or section or subdivision thereof shall give the number, if any, and the title of the ordinance or resolution to be repealed in whole or in part. No ordinance or resolution or section or subdivision thereof shall be amended by reference to the title alone, but such an amending ordinance or resolution shall set forth in full each section or subdivision to be amended, and shall indicate new matter by underscoring and old matter to be omitted by enclosing it in brackets. In newspaper publication, the same indications of omitted and new matter shall be used except that italics or bold-faced type may be substituted for underscoring, and omitted matter may be printed in capital letters without parentheses.