diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2010-12-26 21:04:20 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2010-12-26 21:04:20 +0000 |
commit | 9b36a59b7dbaa3805d22a0498eb982f0e6cf4b31 (patch) | |
tree | ad35598c62d8768d7a815a892456da372e6b76a3 /usr.bin/mandoc/mdoc.h | |
parent | 55d0ea063b25d8b25fea5135f59de22437ecd4ea (diff) |
Behave more like groff (both old and new): Specifying both .%T and .%J in
an .Rs block causes the title to be quoted instead of underlined, such
that journal title and article title appear visually different.
Original diff from kristaps@, simplified by me, tweaked again by kristaps@.
Diffstat (limited to 'usr.bin/mandoc/mdoc.h')
-rw-r--r-- | usr.bin/mandoc/mdoc.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/mandoc/mdoc.h b/usr.bin/mandoc/mdoc.h index 58743e37deb..39a9275f274 100644 --- a/usr.bin/mandoc/mdoc.h +++ b/usr.bin/mandoc/mdoc.h @@ -1,4 +1,4 @@ -/* $Id: mdoc.h,v 1.38 2010/12/21 23:57:31 schwarze Exp $ */ +/* $Id: mdoc.h,v 1.39 2010/12/26 21:04:19 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -355,6 +355,10 @@ struct mdoc_an { enum mdoc_auth auth; /* -split, etc. */ }; +struct mdoc_rs { + struct mdoc_node *child_J; /* pointer to %J */ +}; + /* * Consists of normalised node arguments. These should be used instead * of iterating through the mdoc_arg pointers of a node: defaults are @@ -365,6 +369,7 @@ union mdoc_data { struct mdoc_bd *Bd; struct mdoc_bf *Bf; struct mdoc_bl *Bl; + struct mdoc_rs *Rs; struct tbl *TS; }; |