diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-12-02 10:16:55 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-12-02 10:16:55 +0000 |
commit | 41eb251d81c9a1ef2f4036c8b217c0f024b490c2 (patch) | |
tree | 738657b324fffd44070280adfce613180e3ad75b | |
parent | 04997d289daaf8f0aeb617702514e01c1cb7e8a9 (diff) | |
download | mandoc-41eb251d81c9a1ef2f4036c8b217c0f024b490c2.tar.gz mandoc-41eb251d81c9a1ef2f4036c8b217c0f024b490c2.tar.zst mandoc-41eb251d81c9a1ef2f4036c8b217c0f024b490c2.zip |
Fixed handling of exampledir (pointed out by Ulrich Sporlein, forgotten, discovered again).
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | mdoc_html.c | 6 |
2 files changed, 7 insertions, 4 deletions
@@ -108,17 +108,20 @@ installwww: www install: mkdir -p $(BINDIR) + mkdir -p $(EXAMPLEDIR) mkdir -p $(MANDIR)/man1 mkdir -p $(MANDIR)/man7 $(INSTALL_PROGRAM) mandoc $(BINDIR) $(INSTALL_MAN) mandoc.1 $(MANDIR)/man1 - $(INSTALL_MAN) mdoc.7 $(MANDIR)/man7 + $(INSTALL_MAN) man.7 mdoc.7 $(MANDIR)/man7 $(INSTALL_DATA) example.style.css $(EXAMPLEDIR) uninstall: rm -f $(BINDIR)/mandoc rm -f $(MANDIR)/man1/mandoc.1 rm -f $(MANDIR)/man7/mdoc.7 + rm -f $(MANDIR)/man7/man.7 + rm -f $(EXAMPLEDIR)/example.style.css man_macro.ln: man_macro.c libman.h man_macro.o: man_macro.c libman.h diff --git a/mdoc_html.c b/mdoc_html.c index fa8fcbf3..3fd57d1f 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.48 2009/11/16 08:46:59 kristaps Exp $ */ +/* $Id: mdoc_html.c,v 1.49 2009/12/02 10:16:55 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -1573,9 +1573,9 @@ mdoc_vt_pre(MDOC_ARGS) struct roffsu su; if (SEC_SYNOPSIS == n->sec) { - if (n->next && MDOC_Vt != n->next->tok) { + if (n->prev && MDOC_Vt != n->prev->tok) { SCALE_VS_INIT(&su, 1); - bufcat_su(h, "margin-bottom", &su); + bufcat_su(h, "margin-top", &su); PAIR_STYLE_INIT(&tag, h); print_otag(h, TAG_DIV, 1, &tag); } else |