stop adding empty filenames
This commit is contained in:
parent
5c60585a90
commit
9e3d5ccc7f
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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user