From: Armaan Bhojwani Date: Sun, 18 Apr 2021 17:37:27 +0000 (-0400) Subject: Rename desc to description X-Git-Url: https://git.armaanb.net/?p=stagit.git;a=commitdiff_plain;h=c813221f83cecfceaf0d44ad3607d46de01efacf Rename desc to description --- diff --git a/man/stagit-index.1 b/man/stagit-index.1 index ed7239f..1091f46 100644 --- 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 index 2a23e8f..e226b0d 100644 --- a/src/stagit-index.c +++ b/src/stagit-index.c @@ -84,8 +84,8 @@ writeheader(char *path) xmlencode(fp, description, strlen(description)); fputs("\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