Commit 8309fbd9 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Bug 722788 - Command \| not working when last character in markdown table line

parent 60ea06a6
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment