From c813221f83cecfceaf0d44ad3607d46de01efacf Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Sun, 18 Apr 2021 13:37:27 -0400 Subject: [PATCH] Rename desc to description --- man/stagit-index.1 | 2 +- src/stagit-index.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.2