[fix] code display when printing a page was buggy