Skip to content

Commit

Permalink
Bug 722788 - Command \| not working when last character in markdown t…
Browse files Browse the repository at this point in the history
…able line
  • Loading branch information
Dimitri van Heesch committed Jan 26, 2014
1 parent 60ea06a commit 8309fbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/markdown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1467,7 +1467,7 @@ int findTableColumns(const char *data,int size,int &start,int &end,int &columns)
eol=i+1;
i--;
while (i>0 && data[i]==' ') i--;
if (i>0 && data[i]=='|') i--,n++; // trailing | does not count
if (i>0 && data[i-1]!='\\' && data[i]=='|') i--,n++; // trailing or escaped | does not count
end = i;

// count columns between start and end
Expand Down

0 comments on commit 8309fbd

Please sign in to comment.