summaryrefslogtreecommitdiff
path: root/src/gmdocument.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-28 17:20:12 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-28 17:20:12 +0300
commit425b2c5468269133107b8c27d0c205162748ff82 (patch)
treea27217d46ff1dda38daa8f4a9039276e9a72ddca /src/gmdocument.c
parentd612879c07efc90e1230dbb13f71ea3b43046fe5 (diff)
GmDocument: Default to preformatted tab width 4
Diffstat (limited to 'src/gmdocument.c')
-rw-r--r--src/gmdocument.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gmdocument.c b/src/gmdocument.c
index 4d1aa876..0a7f3b38 100644
--- a/src/gmdocument.c
+++ b/src/gmdocument.c
@@ -852,7 +852,7 @@ static void normalize_GmDocument(iGmDocument *d) {
852 if (d->format == plainText_GmDocumentFormat) { 852 if (d->format == plainText_GmDocumentFormat) {
853 isPreformat = iTrue; /* Cannot be turned off. */ 853 isPreformat = iTrue; /* Cannot be turned off. */
854 } 854 }
855 const int preTabWidth = 8; /* TODO: user-configurable parameter */ 855 const int preTabWidth = 4; /* TODO: user-configurable parameter */
856 while (nextSplit_Rangecc(src, "\n", &line)) { 856 while (nextSplit_Rangecc(src, "\n", &line)) {
857 if (isPreformat) { 857 if (isPreformat) {
858 /* Replace any tab characters with spaces for visualization. */ 858 /* Replace any tab characters with spaces for visualization. */