Ticket #3912: 0001-Update-xls2csv-usage.patch

File 0001-Update-xls2csv-usage.patch, 1.1 KB (added by adamm, 2 years ago)
  • misc/ext.d/doc.sh.in

    From e519f0b9056bf19658721a3851d87e94729d5f85 Mon Sep 17 00:00:00 2001
    From: Adam Majer <amajer@suse.de>
    Date: Tue, 10 Apr 2018 13:22:55 +0200
    Subject: [PATCH] Update xls2csv usage
    
    xls2csv only prints error page and returns EXIT CODE 0
    when only supplied a spreadsheet without -x parameter.
    -c parameter also mandatory.
    
    Currently permitted parameters are:
    
    usage: xls2csv -x spreadsheet.xls [-w worksheet]
       [-n worksheet number] [-b charset] [-c csvfile.csv]
       [-a charset] [-qshvWf]
    
    This is xls2csv version 1.07
    
    Which is latest version in openSUSE:Factory
    ---
     misc/ext.d/doc.sh.in | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/misc/ext.d/doc.sh.in b/misc/ext.d/doc.sh.in
    index c8e83cfee..04f13c2c5 100644
    a b do_view_action() { 
    6767            elinks -dump "$tmp/page.html" 
    6868            rm -rf "$tmp" 
    6969        } || \ 
    70             xls2csv "${MC_EXT_FILENAME}" || \ 
     70            xls2csv -c - -x "${MC_EXT_FILENAME}" || \ 
    7171            strings "${MC_EXT_FILENAME}" 
    7272        ;; 
    7373    dvi)