summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-01-04 07:51:12 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-01-04 07:51:12 +0200
commite41bde771841a80cff479932c44ce70ddc0c5476 (patch)
tree67c1f19f08841ec57515c5a01cd461b1fd4f398e
parenta6ab93937bee7bf692556ba59b691726d558f444 (diff)
GmDocument: Empty lines vs. consecutive quotes
Detecting if quote lines are consecutive was changed so that an empty line can be used to separate quotes. For example, see Astrobotany's Message Board. IssueID #108
-rw-r--r--src/gmdocument.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gmdocument.c b/src/gmdocument.c
index 6f038524..1717f92f 100644
--- a/src/gmdocument.c
+++ b/src/gmdocument.c
@@ -402,6 +402,9 @@ static void doLayout_GmDocument_(iGmDocument *d) {
402 if (isEmpty_Range(&line)) { 402 if (isEmpty_Range(&line)) {
403 pos.y += lineHeight_Text(run.font); 403 pos.y += lineHeight_Text(run.font);
404 prevType = type; 404 prevType = type;
405 if (type != quote_GmLineType) {
406 addQuoteIcon = prefs->quoteIcon;
407 }
405 /* TODO: Extra skip needed here? */ 408 /* TODO: Extra skip needed here? */
406 continue; 409 continue;
407 } 410 }