Permalink
Browse files

Bug 722788 - Command \| not working when last character in markdown t…

…able line
  • Loading branch information...
Dimitri van Heesch
Dimitri van Heesch committed Jan 26, 2014
1 parent 60ea06a commit 8309fbd9e639eaf9e763e83ca7a228c659450a57
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/markdown.cpp
View
@@ -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

0 comments on commit 8309fbd

Please sign in to comment.