Ticket #3955: mc-3955-man2hlp-support-re-macro.patch

File mc-3955-man2hlp-support-re-macro.patch, 971 bytes (added by and, 2 months ago)
  • src/man2hlp/man2hlp.in

    From 8fa41a130c9472b268a12d4079a89b24d88b15e3 Mon Sep 17 00:00:00 2001
    From: Andreas Mohr <and@gmx.li>
    Date: Sun, 13 Jan 2019 15:57:30 +0000
    Subject: [PATCH] man2hlp.c: support partly .RE macro
    
    To get rid of following warning
    
        man2hlp: Warning: unsupported command .RE in file "../../doc/man/mc.1" on line 4317
    
    support at least 'break' feature for .RE macro
    
    See https://www.gnu.org/software/groff/manual/html_node/Man-usage.html
        The macros RS and RE also cause a break but do not insert vertical space.
    
    Signed-off-by: Andreas Mohr <and@gmx.li>
    ---
     src/man2hlp/man2hlp.in | 4 ++++
     1 file changed, 4 insertions(+)
    
    diff --git a/src/man2hlp/man2hlp.in b/src/man2hlp/man2hlp.in
    index f0958304b..83a470729 100644
    a b sub handle_command($) 
    578578    { 
    579579        return; 
    580580    } 
     581    elsif ($buffer eq ".RE") 
     582    { 
     583        newline; 
     584    } 
    581585    else 
    582586    { 
    583587        # Other commands are ignored