Adam Majer
3a3656748e
mc 4.8.26 OBS-URL: https://build.opensuse.org/request/show/878962 OBS-URL: https://build.opensuse.org/package/show/Base:System/mc?expand=0&rev=136
23 lines
878 B
Diff
23 lines
878 B
Diff
Index: misc/ext.d/doc.sh.in
|
|
===================================================================
|
|
--- misc/ext.d/doc.sh.in.orig
|
|
+++ misc/ext.d/doc.sh.in
|
|
@@ -52,7 +52,7 @@ do_view_action() {
|
|
fi
|
|
;;
|
|
msdoc)
|
|
- if which wvHtml >/dev/null 2>&1; then
|
|
+ if which wvHtml >/dev/null 2>&1 && which elinks >/dev/null 2>&1; then
|
|
tmp=`mktemp -d ${TMPDIR:-/tmp}/%p.XXXXXX`
|
|
wvHtml "${MC_EXT_FILENAME}" --targetdir="$tmp" page.html
|
|
elinks -dump "$tmp/page.html"
|
|
@@ -68,7 +68,7 @@ do_view_action() {
|
|
fi
|
|
;;
|
|
msxls)
|
|
- if which xlhtml >/dev/null 2>&1; then
|
|
+ if which xlhtml >/dev/null 2>&1 && which elinks >/dev/null 2>&1; then
|
|
tmp=`mktemp -d ${TMPDIR:-/tmp}/%p.XXXXXX`
|
|
xlhtml -a "${MC_EXT_FILENAME}" > "$tmp/page.html"
|
|
elinks -dump "$tmp/page.html"
|