diff --git a/conans/client/conan_command_output.py b/conans/client/conan_command_output.py index 91a6fff6a8d..9b4eb6cfae4 100644 --- a/conans/client/conan_command_output.py +++ b/conans/client/conan_command_output.py @@ -289,7 +289,7 @@ def print_dir_list(self, list_files, path, raw): def print_file_contents(self, contents, file_name, raw): if raw or not self._output.is_terminal: - self._output.writeln(contents) + self._output.write(contents) return from pygments import highlight diff --git a/conans/test/integration/command/get_test.py b/conans/test/integration/command/get_test.py index 8baaa1e0aa6..94615433274 100644 --- a/conans/test/integration/command/get_test.py +++ b/conans/test/integration/command/get_test.py @@ -50,7 +50,7 @@ def test_get_local_reference(self): self.client.out) self.client.run('get {} other/path/to/exported'.format(self.reference)) - self.assertEqual("2\n", self.client.out) + self.assertEqual("2", self.client.out) # Local search, conanfile print self.client.run('get {} --raw'.format(self.reference))