From 9e3d5ccc7f5ed957b9c6d9786a0a8eb1e638c715 Mon Sep 17 00:00:00 2001 From: Julian Daube Date: Sun, 8 Oct 2017 19:04:20 +0200 Subject: [PATCH] stop adding empty filenames --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 7b3f3dc..635fa44 100644 --- a/main.cpp +++ b/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();