From a05bca953d9b2f882e07566f976785d141ea57d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 19 Jun 2021 15:02:56 +0200 Subject: Fix bug in _e macro --- g.tmac | 9 ++++----- 1 file 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' \{\ -- cgit v1.2.3