Re: [PATCH] gnulib-tool.py: Prefer str.splitlines() over str.split('\n').

2024-03-20 Thread Collin Funk
Hi Bruno, On 3/20/24 3:58 AM, Bruno Haible wrote: > * If an Automake snippet has a blank line, we want that blank line to be > preserved in the generated Makefile.am, not eliminated. Ah, okay I see. I agree that it is best to preserve whitespace here. I didn't see any '\v', '\f', etc. in the mo

Re: [PATCH] gnulib-tool.py: Prefer str.splitlines() over str.split('\n').

2024-03-20 Thread Bruno Haible
Hi Collin, > This patch changes calls of .split('\n') on string objects to > .splitlines(). ... > This should help reduce the amount of unexpected newlines in the > output of Makefiles and other generated files. I don't think this patch is appropriate: * splitlines() is documented to treat the '

[PATCH] gnulib-tool.py: Prefer str.splitlines() over str.split('\n').

2024-03-20 Thread Collin Funk
in the output of Makefiles and other generated files. CollinFrom 480aa5e79833c69bb1582ea2e7b39b2beacbf8aa Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Wed, 20 Mar 2024 03:02:45 -0700 Subject: [PATCH] gnulib-tool.py: Prefer str.splitlines() over str.split('\n'). * pygnulib/GLEmiter.p