Ticket #4475: docx.patch

File docx.patch, 625 bytes (added by pelya, 17 months ago)
  • misc/ext.d/doc.sh.in

    diff --git a/misc/ext.d/doc.sh.in b/misc/ext.d/doc.sh.in
    index c296ca270..8baec0754 100644
    a b do_view_action() { 
    5252        fi 
    5353        ;; 
    5454    msdoc) 
    55         if which wvHtml >/dev/null 2>&1; then 
     55        OOFFICE=`get_ooffice_executable` 
     56        if [ -n "${OOFFICE}" ]; then 
     57            ${OOFFICE} --headless --cat "${MC_EXT_FILENAME}" 
     58        elif which wvHtml >/dev/null 2>&1; then 
    5659            tmp=`mktemp -d ${TMPDIR:-/tmp}/%p.XXXXXX` 
    5760            wvHtml "${MC_EXT_FILENAME}" --targetdir="$tmp" page.html 
    5861            elinks -dump "$tmp/page.html"