aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2022-07-31 05:37:05 +0000
committerStefan Eßer <se@FreeBSD.org>2022-07-31 05:37:05 +0000
commitdc9e68ad0187bdfe4781256a6c4751e074e1e2a2 (patch)
tree3a7353f25998a3836a70fb7c56764a76fd150974 /usr.bin
parent548045bf57c46cb2f4d43d3d7fa5d8ad37ec7f9a (diff)
downloadsrc-dc9e68ad0187bdfe4781256a6c4751e074e1e2a2.tar.gz
src-dc9e68ad0187bdfe4781256a6c4751e074e1e2a2.zip
calendar: clarify comment syntax in man page
The single line comment indicator '//' is only detected at the beginning of a line or when following white space to allow URLs in calendar entries. MFC after: 3 days
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/calendar/calendar.112
1 files changed, 7 insertions, 5 deletions
diff --git a/usr.bin/calendar/calendar.1 b/usr.bin/calendar/calendar.1
index 1b4972b70f78..63e43055dde4 100644
--- a/usr.bin/calendar/calendar.1
+++ b/usr.bin/calendar/calendar.1
@@ -28,7 +28,7 @@
.\" @(#)calendar.1 8.1 (Berkeley) 6/29/93
.\" $FreeBSD$
.\"
-.Dd November 5, 2020
+.Dd July 31, 2022
.Dt CALENDAR 1
.Os
.Sh NAME
@@ -219,11 +219,13 @@ If the shared file is not referenced by a full pathname,
searches in the current (or home) directory first, and then in the
directory
.Pa /usr/share/calendar .
-Empty lines and text protected by the C commenting syntax
-.Pq Li /* ... */
+.Pp
+Blank lines and text protected by the C comment syntax
+.Ql /* ... */
or
-.Pq Li //
-are ignored.
+.Ql //
+are ignored, but the latter only at the beginning of a line or after
+white space to allow for URLs in calendar entries.
.Pp
Some possible calendar entries (<tab> characters highlighted by
\fB\et\fR sequence):