From fcd488027f8d6316b641cffa970d451df8a92c76 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sat, 18 Apr 2020 20:40:10 +0000 Subject: When a .Tg is attached to a paragraph, attach the permalink to the first word, or the first few words if they are short. --- read.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'read.c') diff --git a/read.c b/read.c index a47240c4..92045964 100644 --- a/read.c +++ b/read.c @@ -1,6 +1,6 @@ -/* $Id: read.c,v 1.217 2020/04/07 22:56:02 schwarze Exp $ */ +/* $Id: read.c,v 1.218 2020/04/18 20:40:10 schwarze Exp $ */ /* - * Copyright (c) 2010-2019 Ingo Schwarze + * Copyright (c) 2010-2020 Ingo Schwarze * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010, 2012 Joerg Sonnenberger * @@ -42,12 +42,12 @@ #include "mandoc_aux.h" #include "mandoc.h" #include "roff.h" -#include "tag.h" #include "mdoc.h" #include "man.h" #include "mandoc_parse.h" #include "libmandoc.h" #include "roff_int.h" +#include "tag.h" #define REPARSE_LIMIT 1000 @@ -708,7 +708,7 @@ mparse_result(struct mparse *curp) mdoc_validate(curp->man); else man_validate(curp->man); - tag_postprocess(curp->man->meta.first); + tag_postprocess(curp->man, curp->man->meta.first); } return &curp->man->meta; } -- cgit v1.2.3