From d55e7f77df40f9e17cac9e70fab0b4a009d2a4f8 Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Fri, 22 Mar 2024 12:57:01 -0700 Subject: [PATCH] gnulib-tool.py: Don't remove newlines in testdir's Automake snippets. * pygnulib/GLTestDir.py (GLTestDir.execute): Don't strip newlines from Automake snippets. --- ChangeLog | 6 ++++++ pygnulib/GLTestDir.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 183a1e1996..c8f4063444 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-03-22 Collin Funk + + gnulib-tool.py: Don't remove newlines in testdir's Automake snippets. + * pygnulib/GLTestDir.py (GLTestDir.execute): Don't strip newlines from + Automake snippets. + 2024-03-22 Collin Funk gnulib-tool.py: Fix empty newline output in test directories. diff --git a/pygnulib/GLTestDir.py b/pygnulib/GLTestDir.py index 6f6a75931a..1807112e24 100644 --- a/pygnulib/GLTestDir.py +++ b/pygnulib/GLTestDir.py @@ -647,7 +647,7 @@ class GLTestDir(object): emit += '[$gl_module_indicator_condition])\n' snippets = self.emitter.autoconfSnippets(tests_modules, main_modules + tests_modules, moduletable, 1, True, False, False, replace_auxdir) - emit += snippets.strip() + emit += snippets emit += ' m4_popdef([gl_MODULE_INDICATOR_CONDITION])\n' emit += self.emitter.initmacro_end('%stests' % macro_prefix, True) # _LIBDEPS and _LTLIBDEPS variables are not needed if this library is -- 2.39.5