diff --git a/Makefile-testfiles b/Makefile-testfiles index 85b947f..59a00a5 100644 --- a/Makefile-testfiles +++ b/Makefile-testfiles @@ -400,6 +400,10 @@ type1.vhd: VBoxManage createmedium disk --filename=type1.vhd --format=VHD --sizebyte=163840 VBoxManage closemedium type1.vhd +type1.man: type1.1 + # type1.1 is lightly-edited version of testfiles/type1.1 + nroff -man -c "$^" >"$@" + # It's best to use a version of dar <= 2.7.0 to create this file to avoid test # failures due to an archive created by a too-new version of dar. type1.1.dar: foo diff --git a/autodescribe b/autodescribe index 0bc7d39..00117e1 100755 --- a/autodescribe +++ b/autodescribe @@ -1055,7 +1055,7 @@ comment_man () { comment_mantxt () { COMMENT=$(sed -n -Ee '/^(N.NA.AM.ME.E|NAME)$/{N;s/^[^ ]* *//p}' < "$f" | head -1) if [ -z "$COMMENT" ] ; then - # It might be bin in roff format if it's not in plain ASCII format + # It might be in roff format if it's not in plain ASCII format comment_man "$@" fi } diff --git a/test-autodescribe-expected b/test-autodescribe-expected index d79875f..23cbec4 100644 --- a/test-autodescribe-expected +++ b/test-autodescribe-expected @@ -36,6 +36,7 @@ 'testfiles/type1.kra' 'Krita name' 'testfiles/type1.lsm' 'LSM Title' 'testfiles/type1.lzh' 'LZH comment in desc.sdi file' +'testfiles/type1.man' 'fileviewinfotest - plain text man page name' 'testfiles/type1.md' 'Markdown title' 'testfiles/type1.metainfo.xml' 'Nonlocalized name, Nonlocalized summary' 'testfiles/type1.mlt' 'video.mp4' diff --git a/testfiles/type1.man b/testfiles/type1.man new file mode 100644 index 0000000..c11bb07 --- /dev/null +++ b/testfiles/type1.man @@ -0,0 +1,16 @@ +FILEVIEWINFOTEST(1) General Commands Manual FILEVIEWINFOTEST(1) + + + +NNAAMMEE + fileviewinfotest - plain text man page name + +SSYYNNOOPPSSIISS + ffiilleevviieewwiinnffootteesstt + +DDEESSCCRRIIPPTTIIOONN + Test input file. + + + +fileviewinfo test file 23 Nov 2023 FILEVIEWINFOTEST(1)