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 | c5b2462b76dc92a73a1f5ae0226aea1b37d83f0e (patch) | |
tree | 0a463a06c5fce71604f9af38bc4f39210b3121e7 | |
parent | 82b5314b2fdf0873bca2c21af698ee6b3525efb2 (diff) | |
download | mandoc-c5b2462b76dc92a73a1f5ae0226aea1b37d83f0e.tar.gz |
Fixed handling of exampledir (pointed out by Ulrich Sporlein, forgotten, discovered again).
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | mdoc_html.c | 4 |
2 files changed, 6 insertions, 3 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 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 |