From b54a15faa2304f9d4326379e3a13a368d3464418 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Sun, 26 Nov 2017 20:43:31 +0100 Subject: Fix of the new PlaceholderParser: Maintain whitespaces and new lines. --- t/custom_gcode.t | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 't') diff --git a/t/custom_gcode.t b/t/custom_gcode.t index 62bd7993c..2cb9a44b8 100644 --- a/t/custom_gcode.t +++ b/t/custom_gcode.t @@ -1,4 +1,4 @@ -use Test::More tests => 39; +use Test::More tests => 40; use strict; use warnings; @@ -55,6 +55,9 @@ use Slic3r::Test; is $parser->process('{temperature[foo]}'), $config->temperature->[0], "array reference"; + is $parser->process("test [ temperature_ [foo] ] \n hu"), + "test " . $config->temperature->[0] . " \n hu", + "whitespaces and newlines are maintained"; } { -- cgit v1.2.3