From c640f330a235515ca785e7ae3ab538dcfce16b64 Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Sun, 17 Mar 2024 11:53:11 -0700 Subject: [PATCH] gnulib-tool.py: Don't print extra newlines. * pygnulib/GLEmiter.py (GLEmiter.initmacro_end): Don't print extra newline that are not printed by gnulib-tool.sh. --- ChangeLog | 6 ++++++ pygnulib/GLEmiter.py | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4463c454d6..b1f7a3d1d3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-03-17 Collin Funk + + gnulib-tool.py: Don't print extra newlines. + * pygnulib/GLEmiter.py (GLEmiter.initmacro_end): Don't print extra + newline that are not printed by gnulib-tool.sh. + 2024-03-17 Collin Funk gnulib-tool.py: Follow gnulib-tool changes, part 62. diff --git a/pygnulib/GLEmiter.py b/pygnulib/GLEmiter.py index bd678fc4af..a988f9f51f 100644 --- a/pygnulib/GLEmiter.py +++ b/pygnulib/GLEmiter.py @@ -620,8 +620,7 @@ USE_MSGCTXT = no\n""" libobjdeps = f'{macro_prefix_arg}_libobjdeps="${macro_prefix_arg}_libobjdeps {subdir}$i_dir/\\$(DEPDIR)/$i_base.Plo"' else: libobjdeps = f'{macro_prefix_arg}_libobjdeps="${macro_prefix_arg}_libobjdeps {subdir}$i_dir/\\$(DEPDIR)/$i_base.Po"' - emit += fr''' - m4_ifval({macro_prefix_arg}_LIBSOURCES_LIST, [ + emit += fr''' m4_ifval({macro_prefix_arg}_LIBSOURCES_LIST, [ m4_syscmd([test ! -d ]m4_defn([{macro_prefix_arg}_LIBSOURCES_DIR])[ || for gl_file in ]{macro_prefix_arg}_LIBSOURCES_LIST[ ; do if test ! -r ]m4_defn([{macro_prefix_arg}_LIBSOURCES_DIR])[/$gl_file ; then -- 2.44.0