Skip to content

Commit a9b60ca

Browse files
committed
issue #10858 Markdown: unordered list
1 parent e65420e commit a9b60ca

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/docparser.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1852,8 +1852,8 @@ QCString DocParser::processCopyDoc(const char *data,size_t &len)
18521852
context.copyStack.push_back(def);
18531853
auto addDocs = [&](const QCString &file_,int line_,const QCString &doc_)
18541854
{
1855-
buf.addStr(" \\ilinebr \\ifile \""+file_+"\" ");
1856-
buf.addStr("\\iline "+QCString().setNum(line_)+" ");
1855+
buf.addStr(" \\ifile \""+file_+"\" ");
1856+
buf.addStr("\\iline "+QCString().setNum(line_)+" \\ilinebr ");
18571857
size_t len_ = doc_.length();
18581858
buf.addStr(processCopyDoc(doc_.data(),len_));
18591859
};

src/doctokenizer.l

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,16 +187,18 @@ static int computeIndent(const char *str,size_t length)
187187
{
188188
indent=0;
189189
}
190-
else if (str[i]=='\\' && qstrcmp(str+i+1,"ilinebr ")==0)
190+
else if (str[i]=='\\' && qstrncmp(str+i+1,"ilinebr",7)==0)
191191
{
192192
indent=0;
193-
i+=8;
193+
i+=7;
194+
if (str[i+1]==' ') i++; // also eat space after \\ilinebr if present
194195
}
195196
else
196197
{
197198
indent++;
198199
}
199200
}
201+
//printf("input('%s')=%d\n",str,indent);
200202
return indent;
201203
}
202204

0 commit comments

Comments
 (0)