diff options
author | 2020-04-01 20:21:08 +0000 | |
---|---|---|
committer | 2020-04-01 20:21:08 +0000 | |
commit | bc6d8c884c63e49aafa7894399d3d7060108b4ec (patch) | |
tree | 221c86f83f95f27ccb490ae5bc0a9b4811809d0b /mdoc_html.c | |
parent | e5d39b82294bd2fb1536527e0f27b2902943f299 (diff) | |
download | mandoc-bc6d8c884c63e49aafa7894399d3d7060108b4ec.tar.gz mandoc-bc6d8c884c63e49aafa7894399d3d7060108b4ec.tar.zst mandoc-bc6d8c884c63e49aafa7894399d3d7060108b4ec.zip |
Just like we are already doing it in HTML output, automatically tag
section and subsection headers in terminal output, too. Even though
admittedly, commands like "/SEE" and "/ Subsec" work, too, there
is no downside, and besides, with the recent improvements in the
tagging framework, implementation cost is negligible.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r-- | mdoc_html.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mdoc_html.c b/mdoc_html.c index 8ae8703f..fbfa19a0 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.336 2020/03/13 15:32:28 schwarze Exp $ */ +/* $Id: mdoc_html.c,v 1.337 2020/04/01 20:21:08 schwarze Exp $ */ /* * Copyright (c) 2014-2020 Ingo Schwarze <schwarze@openbsd.org> * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> @@ -569,7 +569,6 @@ mdoc_sh_pre(MDOC_ARGS) print_otag(h, TAG_SECTION, "c", "Sh"); break; case ROFFT_HEAD: - n->flags |= NODE_ID; print_otag_id(h, TAG_H1, "Sh", n); break; case ROFFT_BODY: @@ -591,7 +590,6 @@ mdoc_ss_pre(MDOC_ARGS) print_otag(h, TAG_SECTION, "c", "Ss"); break; case ROFFT_HEAD: - n->flags |= NODE_ID; print_otag_id(h, TAG_H2, "Ss", n); break; case ROFFT_BODY: |