From c5b2462b76dc92a73a1f5ae0226aea1b37d83f0e Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Wed, 2 Dec 2009 10:16:55 +0000 Subject: Fixed handling of exampledir (pointed out by Ulrich Sporlein, forgotten, discovered again). --- Makefile | 5 ++++- mdoc_html.c | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 1f39bfb8..1ee8b325 100644 --- a/Makefile +++ b/Makefile @@ -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 c415909c..66ce08c7 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -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 -- cgit