summaryrefslogtreecommitdiff
path: root/bin/ed
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2004-04-05 16:27:22 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2004-04-05 16:27:22 +0000
commit8e4ba61765f4d69b449f96f840e151426cb6b764 (patch)
tree549a6dbf59969bf27edd0924f679bdc6811b8a1e /bin/ed
parent61ab317f3804367f9d764b10765056e9220683c0 (diff)
- redefine the .UL macro so that, even if output is to a non-TTY device,
.UL formats as italic (underline on TTY); this also makes .ul and .UL consistent, and avoids formatting problems when punctuation is involved - simplify .IT macro (from e.mac) - make bold font work for .P1/.P2 (from e.mac) - fix a double blank line issue w/ -Tascii - kill a pesky blank line that was messing the output
Diffstat (limited to 'bin/ed')
-rw-r--r--bin/ed/USD.doc/10.edadv/ae.mac17
1 files changed, 8 insertions, 9 deletions
diff --git a/bin/ed/USD.doc/10.edadv/ae.mac b/bin/ed/USD.doc/10.edadv/ae.mac
index a3112c5d23f..8c0f45127b0 100644
--- a/bin/ed/USD.doc/10.edadv/ae.mac
+++ b/bin/ed/USD.doc/10.edadv/ae.mac
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ae.mac,v 1.2 2003/06/26 16:24:16 mickey Exp $
+.\" $OpenBSD: ae.mac,v 1.3 2004/04/05 16:27:21 jmc Exp $
.\"
.\" Copyright (C) Caldera International Inc. 2001-2002.
.\" All rights reserved.
@@ -36,14 +36,10 @@
.\"
.tr _\(em
.de UL
-.if n .ul
-.if n \\$3\\$1\\$2
-.if t \\$3\f3\\$1\fP\\$2
+\&\\$3\f2\\$1\f1\\$2
..
.de IT
-.if t \\$3\f2\\$1\fP\\$2
-.if n .ul
-.if n \\$3\\$1\\$2
+\&\\$3\f2\\$1\fP\\$2
..
.de UI
\f3\\$1\fI\\$2\fR\\$3
@@ -57,11 +53,15 @@
.\" use first argument as indent if present
.if \\n(.$ .DS I \\$1
.if !\\n(.$ .DS I 5
+.bd 1 2
..
.de P2
+.br
+.bd 1 2
.DE
+.bd 1
.tr --
-.if n .ls 2
+.if n .ls 1
..
.if t .ds BL \s6\|\v'.1m'\(sq\v'-.1m'\|\s0
.if n .ds BL []
@@ -84,4 +84,3 @@
.hy 14
.\" 2=not last lines; 4= no -xx; 8=no xx-
.tr *\(**
-