diff options
author | wl <wl> | 2009-10-26 07:51:02 +0000 |
---|---|---|
committer | wl <wl> | 2009-10-26 07:51:02 +0000 |
commit | 9a3077537ff25f40e75ca051b434274f6385ba46 (patch) | |
tree | fe5fd39971c64047ec208dc7b4e0870109745216 /tmac/doc-common | |
parent | 1e21b91be301eedfc871c75707c4aeda1470a6ae (diff) | |
download | groff-9a3077537ff25f40e75ca051b434274f6385ba46.tar.gz |
Implement `%U' in mdoc for URL references.
* tmac/doc-common (%U): New register.
(Rd): Handle `doc-url-count' and `doc-url-name'.
* tmac/doc.tmac (doc-url-count, doc-url-name): New registers.
(doc-save-global-vars, doc-restore-global-vars, doc-reset-reference,
doc-print-reference): Handle `doc-url-count' and `doc-url-name'.
(%U): New macro.
* NEWS, tmac/groff_mdoc.man: Document `%U' macro.
Diffstat (limited to 'tmac/doc-common')
-rw-r--r-- | tmac/doc-common | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tmac/doc-common b/tmac/doc-common index 8b1afa56..a87a74b3 100644 --- a/tmac/doc-common +++ b/tmac/doc-common @@ -46,6 +46,7 @@ .nr %Q 1 .nr %R 1 .nr %T 1 +.nr %U 1 .nr %V 1 .nr Ac 3 .nr Ad 12n @@ -1170,6 +1171,8 @@ . tm doc-reference-title-count == \n[doc-reference-title-count] . tm doc-reference-title-name == `\*[doc-reference-title-name]' . tm doc-reference-title-name-for-book == `\*[doc-reference-title-name-for-book]' +. tm doc-url-count == \n[doc-url-count] +. tm doc-url-name == `\*[doc-url-name]' . tm doc-volume-count == \n[doc-volume-count] . tm doc-volume-name == `\*[doc-volume-name]' . tm doc-have-author == \n[doc-have-author] |