stop adding empty filenames
This commit is contained in:
2
main.cpp
2
main.cpp
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user