[patch] getopt.3: ffix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greetings,
I noticed formatting error in getopt.3. Second example first two
#include lines on one line. This patch fixes the issue by using .EX and
.EE to correctly open/close the examples.

This is my first attempt at contributing to man pages, so let me know if
anything is wrong ^_^

From 26ddb56e919c6b902c63470531b71a99f97d3116 Mon Sep 17 00:00:00 2001
From: Wolf <wolf@xxxxxxxxxxx>
Date: Mon, 4 Jun 2018 17:34:53 +0200
Subject: [PATCH] Fix example formatting

---
 man3/getopt.3 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/man3/getopt.3 b/man3/getopt.3
index 857375bef..8d140954a 100644
--- a/man3/getopt.3
+++ b/man3/getopt.3
@@ -447,13 +447,13 @@ main(int argc, char *argv[])
 
     exit(EXIT_SUCCESS);
 }
-.EX
+.EE
 .SS getopt_long()
 The following example program illustrates the use of
 .BR getopt_long ()
 with most of its features.
 .PP
-.EE
+.EX
 #include <stdio.h>     /* for printf */
 #include <stdlib.h>    /* for exit */
 #include <getopt.h>
-- 
2.17.0



Have a nice day,

Gray Wolf
-- 
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux