aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-19 15:02:56 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-19 15:03:07 +0200
commita05bca953d9b2f882e07566f976785d141ea57d0 (patch)
tree8f57a9fdba9ca590afa0bec7229fe9393b22d7f1
parent7d29e70c6e039e7ff51ad6908f25f23df13c3964 (diff)
downloadmk-a05bca953d9b2f882e07566f976785d141ea57d0.tar.gz
Fix bug in _e macro
-rw-r--r--g.tmac9
1 files changed, 4 insertions, 5 deletions
diff --git a/g.tmac b/g.tmac
index f61afc0..d35b462 100644
--- a/g.tmac
+++ b/g.tmac
@@ -100,7 +100,6 @@
.
.\" _e -- set environment
.de _e
-. ds _nenv \$1
.
. \" initialize document?
. if '\n(_a'0' \{\
@@ -117,18 +116,18 @@
.
. \" keep track of previous and new environment
. ds _penv \*[_env]
-. ds _env \*[_nenv]
+. ds _env \$1
.
. \" activate new environment
-. if !'\*[_nenv]'' \{\
-. ev \*[_nenv]
+. if !'\$1'' \{\
+. ev \$1
. nr sp \n[\n[.ev]_sp]
. nr ti \n[\n[.ev]_ti]
. sp \n(spu
. \}
.
. \" post-environment operations
-. if '\*[_nenv]'' .return
+. if '\$1'' .return
.
. \" add small space after title
. if '\*[_penv]'t' \{\