diff options
author | G. Branden Robinson <g.branden.robinson@gmail.com> | 2020-04-19 15:24:24 +1000 |
---|---|---|
committer | G. Branden Robinson <g.branden.robinson@gmail.com> | 2020-04-19 15:24:24 +1000 |
commit | 1474eebe1f83c439dd6d422a311c1c39417fac40 (patch) | |
tree | cdb9974245c5b37b99914ccc2b69228117ebcb68 /tmac/html.tmac | |
parent | d4c4f4786d4652a96b394963f9e5e9b15d27c6f0 (diff) | |
download | groff-git-1474eebe1f83c439dd6d422a311c1c39417fac40.tar.gz |
**/*.{man,tmac}: Save compatibility mode robustly.
Use new \n[.cp] register to save compatibilty mode.
Use register names based on the filename (at the source maintenance
level) to avoid clobbering other files' saved compatibility modes.
tmac/html.tmac: Eliminate reference to saved-compatibility register by
moving its test inside the block where compatibility mode is off. This
is the only part of this changeset that was not automated.
Diffstat (limited to 'tmac/html.tmac')
-rw-r--r-- | tmac/html.tmac | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tmac/html.tmac b/tmac/html.tmac index 1da9fb2d1..52154e53d 100644 --- a/tmac/html.tmac +++ b/tmac/html.tmac @@ -2,7 +2,7 @@ .\" .\" html.tmac .\" -.nr _C \n(.C +.do nr *groff_html_tmac_C \n[.cp] .cp 0 . .nroff @@ -533,10 +533,9 @@ .defcolor yellow1 rgb #fffc17 .defcolor yellowgreen rgb #52d017 . -.cp \n(_C +.mso www.tmac . -.if !\n(_C \ -. mso www.tmac +.cp \n[*groff_html_tmac_C] . .do ie '\[char97]'a' \ . do mso latin1.tmac |