summaryrefslogtreecommitdiff
path: root/tmac/an-old.tmac
diff options
context:
space:
mode:
Diffstat (limited to 'tmac/an-old.tmac')
-rw-r--r--tmac/an-old.tmac36
1 files changed, 29 insertions, 7 deletions
diff --git a/tmac/an-old.tmac b/tmac/an-old.tmac
index d1b9d03d..4b582bc9 100644
--- a/tmac/an-old.tmac
+++ b/tmac/an-old.tmac
@@ -92,7 +92,7 @@
.\" .TH title section extra1 extra2 extra3
.de1 TH
. if \\n[an-html] \{\
-. HTML-TAG ".tl"
+. HTML-TAG ".tl"
\\$1
. \}
.
@@ -327,12 +327,9 @@
. sp \\n[PD]u
. if \\n[.$] .nr an-prevailing-indent (n;\\$1)
. it 1 an-trap
+. in 0
+. ll -\\n[an-margin]u
. if !\\n[an-div?] .di an-div
-. ie \\n[an-html] .in \\n[an-margin]u
-. el \{\
-. in 0
-. ll -\\n[an-margin]u
-. \}
. nr an-div? 1
..
.
@@ -372,6 +369,27 @@
. \}
..
.
+.de an-do-tag-html
+. nr an-div? 0
+. br
+. ll
+. di
+. ie ((\\n[dl] + \\n[an-tag-sep]) > \\n[an-prevailing-indent]) \{\
+. in \\n[an-margin]u
+. an-div
+. br
+. in (\\n[an-margin]u + \\n[an-prevailing-indent]u + \\n[an-tag-sep]u)
+. \}
+. el \{\
+. in (\\n[an-margin]u + \\n[an-prevailing-indent]u + \\n[an-tag-sep]u)
+. ti \\n[an-margin]u
+. chop an-div
+. HTML-TAG-NS ".col 1"
+\\*[an-div]\\h'|\\n[an-prevailing-indent]u'\\h'\\n[an-tag-sep]u'\c
+. HTML-TAG-NS ".col 2"
+. \}
+..
+.
.de1 LP
. br
. sp \\n[PD]u
@@ -552,7 +570,11 @@
.ds lq \(lq
.ds rq \(rq
.
-.if !\n[an-html] .hy 14
+.ie \n[an-html] \{\
+. rm an-do-tag
+. als an-do-tag an-do-tag-html
+.\}
+.el .hy 14
.
.\" Load local modifications.
.mso man.local