diff options
author | John Ankarström <john@ankarstrom.se> | 2021-06-19 15:02:56 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-06-19 15:03:07 +0200 |
commit | a05bca953d9b2f882e07566f976785d141ea57d0 (patch) | |
tree | 8f57a9fdba9ca590afa0bec7229fe9393b22d7f1 /g.tmac | |
parent | 7d29e70c6e039e7ff51ad6908f25f23df13c3964 (diff) | |
download | mk-a05bca953d9b2f882e07566f976785d141ea57d0.tar.gz |
Fix bug in _e macro
Diffstat (limited to 'g.tmac')
-rw-r--r-- | g.tmac | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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' \{\ |