Skip to content

Commit

Permalink
implement #3372
Browse files Browse the repository at this point in the history
  • Loading branch information
sunderme committed Nov 18, 2023
1 parent bf3a9ca commit a13384f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/kpathseaParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,16 @@ void KpathSeaParser::run()
QString line;
if (data.open(QIODevice::ReadOnly | QIODevice::Text)) {
QTextStream stream(&data);
bool skipDocs=false;
while (!stream.atEnd()) {
line = stream.readLine();
if (line.endsWith(".sty") || line.endsWith(".cls")) {
if(line.endsWith(":")){
// skip packages in doc directory as they are only used for building documentation
// see https://github.com/texstudio-org/texstudio/issues/3372
skipDocs=line.contains("/doc/");
}
if(skipDocs) continue;
if (line.endsWith(".sty") || line.endsWith(".cls")) {
line.chop(4);
results.insert(line);
}
Expand Down

0 comments on commit a13384f

Please sign in to comment.