diff options
author | John MacFarlane <jgm@berkeley.edu> | 2018-11-13 09:47:50 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-13 09:47:50 -0800 |
commit | b1556b3407a4349b9a1f4f58d8677eda0ead09c1 (patch) | |
tree | 2ee14a588403d9c9ed1888d6270a6f6ca30668ad /src | |
parent | 3a440af3ba874289ef33ac6bbf2da90040c123d6 (diff) | |
parent | d479c28a631731543e6276f807155388aa71acde (diff) |
Merge pull request #275 from github/inline-sourcepos-off
correct sourcepos for emphasis inlines
Diffstat (limited to 'src')
-rw-r--r-- | src/inlines.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/inlines.c b/src/inlines.c index 171247e..d31173d 100644 --- a/src/inlines.c +++ b/src/inlines.c @@ -732,9 +732,10 @@ static delimiter *S_insert_emph(subject *subj, delimiter *opener, } cmark_node_insert_after(opener_inl, emph); - emph->start_line = emph->end_line = subj->line; - emph->start_column = opener_inl->start_column + subj->column_offset; - emph->end_column = closer_inl->end_column + subj->column_offset; + emph->start_line = opener_inl->start_line; + emph->end_line = closer_inl->end_line; + emph->start_column = opener_inl->start_column; + emph->end_column = closer_inl->end_column; // if opener has 0 characters, remove it and its associated inline if (opener_num_chars == 0) { |