Persons punished for contempt under the provisions of sections 476.010 to 476.310 shall, notwithstanding, be liable to indictment for such contempt, if the same be an indictable offense; but the court before which a conviction shall be had on such indictment shall, in forming its sentence, take into consideration the punishment before inflicted.
§ 476.160, RSMo