version 1.144, 2017/01/21 01:20:31 |
version 1.145, 2017/01/25 02:14:43 |
Line 799 resp_format(const struct req *req, const char *file) |
|
Line 799 resp_format(const struct req *req, const char *file) |
|
|
|
memset(&conf, 0, sizeof(conf)); |
memset(&conf, 0, sizeof(conf)); |
conf.fragment = 1; |
conf.fragment = 1; |
|
conf.style = mandoc_strdup(CSS_DIR "/mandoc.css"); |
usepath = strcmp(req->q.manpath, req->p[0]); |
usepath = strcmp(req->q.manpath, req->p[0]); |
mandoc_asprintf(&conf.man, "/%s%s%%N.%%S", |
mandoc_asprintf(&conf.man, "/%s%s%%N.%%S", |
usepath ? req->q.manpath : "", usepath ? "/" : ""); |
usepath ? req->q.manpath : "", usepath ? "/" : ""); |
Line 826 resp_format(const struct req *req, const char *file) |
|
Line 827 resp_format(const struct req *req, const char *file) |
|
mparse_free(mp); |
mparse_free(mp); |
mchars_free(); |
mchars_free(); |
free(conf.man); |
free(conf.man); |
|
free(conf.style); |
} |
} |
|
|
static void |
static void |