mirror of
https://github.com/pantor/inja.git
synced 2026-04-24 00:39:24 +00:00
filesystem::path fixes
This commit is contained in:
@@ -97,7 +97,7 @@ class Parser {
|
||||
|
||||
if (config.search_included_templates_in_files) {
|
||||
// Build the relative path
|
||||
template_name = path / original_name;
|
||||
template_name = (path / original_name).string();
|
||||
if (template_name.compare(0, 2, "./") == 0) {
|
||||
template_name.erase(0, 2);
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ class Renderer : public NodeVisitor {
|
||||
|
||||
static std::string htmlescape(const std::string& data) {
|
||||
std::string buffer;
|
||||
buffer.reserve(1.1 * data.size());
|
||||
buffer.reserve((unsigned int)(1.1 * data.size()));
|
||||
for (size_t pos = 0; pos != data.size(); ++pos) {
|
||||
switch (data[pos]) {
|
||||
case '&': buffer.append("&"); break;
|
||||
|
||||
Reference in New Issue
Block a user