From: Dmitry Selyutin Date: Sat, 9 Sep 2017 16:48:53 +0000 (+0300) Subject: [backport] gnulib-tool: fix incompatibility with autopoint 0.18.2 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=835b8bc9691415fc0d3cb8ee0738558d8627aeef;p=gnulib.git [backport] gnulib-tool: fix incompatibility with autopoint 0.18.2 commit 8e858e6d77dd239e9102626b292519eae170679a Author: Paul Eggert Date: Sat Jan 5 08:03:10 2013 -0800 gnulib-tool: fix incompatibility with autopoint 0.18.2 * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line. Problem reported by Tom G. Christensen in . --- diff --git a/pygnulib/generator.py b/pygnulib/generator.py index 148920df7b..e8c6a23101 100644 --- a/pygnulib/generator.py +++ b/pygnulib/generator.py @@ -237,6 +237,10 @@ class AutoconfSnippet(Generator): src = "AM_GNU_GETTEXT([external])" dst = "dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.'" snippet = snippet.replace(src, dst) + else: + # Don't indent AM_GNU_GETTEXT_VERSION line, as that confuses + # autopoint through at least GNU gettext version 0.18.2. + snippet = snippet.lstrip() lines = (_ for _ in snippet.split("\n") if _) for line in lines: yield line