summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmaan Bhojwani <me@armaanb.net>2021-04-18 13:37:27 -0400
committerArmaan Bhojwani <me@armaanb.net>2021-04-18 13:37:27 -0400
commitc813221f83cecfceaf0d44ad3607d46de01efacf (patch)
tree1351c80783ad7ff5f50705f2c6236eaab8ccb019
parent0bb810d3a94a225fbc7cf099bd92608de0baa45b (diff)
downloadstagit-c813221f83cecfceaf0d44ad3607d46de01efacf.tar.gz
Rename desc to description
-rw-r--r--man/stagit-index.12
-rw-r--r--src/stagit-index.c4
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("</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