(a) No blank lines for write-in candidates shall appear on primary city election ballots.

(b) On the ballots in general city elections, blank lines for the name of write-in candidates shall be printed at the end of the list of candidates for each different office equal to the number to be elected thereto. The purpose of such blank lines shall be to permit the voter to insert the name of any person not printed on the ballot for whom he desires to vote for such office.