Permalink
Browse files

fixes linebreak not properly handled

  • Loading branch information...
1 parent 7d90e98 commit a793a1ed7491a6c805c70ba9ab7b32fc703906b1 @siuying committed Dec 16, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 markdown.c
View
@@ -447,7 +447,7 @@ char_emphasis(struct buf *ob, struct render *rndr,
static size_t
char_linebreak(struct buf *ob, struct render *rndr,
char *data, size_t offset, size_t size) {
- if (offset < 2 || data[-1] != ' ' || data[-2] != 2) return 0;
+ if (offset < 2 || data[-1] != ' ' || data[-2] != ' ') return 0;
/* removing the last space from ob and rendering */
if (ob->size && ob->data[ob->size - 1] == ' ') ob->size -= 1;
return rndr->make.linebreak(ob, rndr->make.opaque) ? 1 : 0; }

0 comments on commit a793a1e

Please sign in to comment.