If the person complained against does not make such affidavit and it appears that any such books, papers or property are withheld, the officer before whom the proceedings are had shall, by warrant, commit the person so withholding to the jail of the county, there to remain until he delivers such books, papers or property or is otherwise discharged by law.