stagit

Personal stagit fork
git clone git://git.alexwennerberg.com/stagit
Log | Files | Refs | README | LICENSE

commit c813221f83cecfceaf0d44ad3607d46de01efacf
parent 0bb810d3a94a225fbc7cf099bd92608de0baa45b
Author: Armaan Bhojwani <me@armaanb.net>
Date:   Sun, 18 Apr 2021 13:37:27 -0400

Rename desc to description

Diffstat:
Mman/stagit-index.1 | 2+-
Msrc/stagit-index.c | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/man/stagit-index.1 b/man/stagit-index.1 @@ -33,7 +33,7 @@ For changing the style of the page you can use the following files: favicon image. .It logo.png 32x32 logo. -.It desc, desc.md +.It description, description.md A plaintext or markdown description to include on the index. .It style.css CSS stylesheet. diff --git a/src/stagit-index.c b/src/stagit-index.c @@ -84,8 +84,8 @@ writeheader(char *path) xmlencode(fp, description, strlen(description)); fputs("</h1>\n", fp); - FILE *longdesc = fopen("desc.md", "r"); - if (longdesc == NULL) longdesc = fopen("desc", "r"); + FILE *longdesc = fopen("description.md", "r"); + if (longdesc == NULL) longdesc = fopen("description", "r"); if (longdesc != NULL) { char c = fgetc(longdesc); #ifdef HAS_CMARK