From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]); by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id 75dd260a; for ; Sat, 14 Feb 2015 08:11:41 -0500 (EST) Date: Sat, 14 Feb 2015 08:11:41 -0500 (EST) Message-Id: <4660304120142032433.enqueue@fantadrom.bsd.lv> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: pod2mdoc: don't get confused by tabs in function declarations in the X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- don't get confused by tabs in function declarations in the SYNOPSIS Modified Files: -------------- pod2mdoc: pod2mdoc.c Revision Data ------------- Index: pod2mdoc.c =================================================================== RCS file: /home/cvs/mdocml/pod2mdoc/pod2mdoc.c,v retrieving revision 1.44 retrieving revision 1.45 diff -Lpod2mdoc.c -Lpod2mdoc.c -u -p -r1.44 -r1.45 --- pod2mdoc.c +++ pod2mdoc.c @@ -1120,6 +1120,8 @@ again: break; } switch (buf[i]) { + case '\t': + /* FALLTHROUGH */ case ' ': if ( ! ifa) ifo = i; @@ -1183,7 +1185,7 @@ again: printf(".Fa \"%s\"\n", buf + ifa); if (cp == NULL) break; - while (*cp == ' ') + while (*cp == ' ' || *cp == '\t') cp++; ifa = cp - buf; } -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv