stop adding empty filenames

This commit is contained in:
Julian Daube 2017-10-08 19:04:20 +02:00
parent 5c60585a90
commit 9e3d5ccc7f

View File

@ -224,7 +224,7 @@ InputExtractor::List InputExtractor::operator()(const Path::Path &file, const Me
};
IncludeCommands["include"] = IncludeCommands["input"];
IncludeCommands["lstinputlisting"] = [file](List &l, std::string a){ l.push_back(fixFilename(a, file)); };
IncludeCommands["lstinputlisting"] = [file](List &l, std::string a){ if (!a.empty()) { l.push_back(fixFilename(a, file)); } };
MemoryString::const_iterator current = str.begin();