summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile5
-rw-r--r--mdoc_html.c4
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