summaryrefslogtreecommitdiff
path: root/src/blocks.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-12-28 12:17:19 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-12-28 12:17:19 -0800
commit569f3787da2c44963bb25869c98ea492517a5716 (patch)
treec8627994b7e491d4f3e12217f1ecaaf68288d4ea /src/blocks.c
parent6e599f2ceb8ca1aee0cdb47d37aba16ac5938641 (diff)
Replaced hard-coded 4 with TAB_STOP.
Diffstat (limited to 'src/blocks.c')
-rw-r--r--src/blocks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blocks.c b/src/blocks.c
index 6f2e5c8..75d005d 100644
--- a/src/blocks.c
+++ b/src/blocks.c
@@ -571,7 +571,7 @@ static void S_advance_offset(cmark_parser *parser, cmark_chunk *input,
int chars_to_tab;
while (count > 0 && (c = peek_at(input, parser->offset))) {
if (c == '\t') {
- chars_to_tab = 4 - (parser->column % TAB_STOP);
+ chars_to_tab = TAB_STOP - (parser->column % TAB_STOP);
parser->column += chars_to_tab;
parser->offset += 1;
count -= (columns ? chars_to_tab : 1);