case "${filetype}" in man) case "${MC_EXT_FILENAME}" in */log/*|*/logs/*) cat "${MC_EXT_FILENAME}" ;; *) MANROFFOPT=-c MAN_KEEP_FORMATTING=1 man -P cat "${MC_EXT_FILENAME}" ;; esac ;; pod) pod2man "${MC_EXT_FILENAME}" | nroff -c -Tlatin1 -mandoc ;; nroff.me) nroff -c -Tlatin1 -me "${MC_EXT_FILENAME}" ;; nroff.ms) nroff -c -Tlatin1 -ms "${MC_EXT_FILENAME}" ;; man.gz|man.bz|man.bz2|man.lz|man.lz4|man.lzma|man.xz) case "${MC_EXT_FILENAME}" in */log/*|*/logs/*) ${unpacker} "${MC_EXT_FILENAME}" ;; *) # "man" takes care of uncompressing. # This way the stdin is left intact so the correct width is used. MANROFFOPT=-c MAN_KEEP_FORMATTING=1 man -P cat "${MC_EXT_FILENAME}" ;; esac ;; *) ;; esac }