From 04c07715b41e9b0184e4e90cd1b23bfa1cb0327e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alain=20P=C3=A9teut?= Date: Sun, 16 Jun 2019 14:06:39 +0200 Subject: [PATCH] build.plat: dedent overrides. --- nmigen/build/plat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nmigen/build/plat.py b/nmigen/build/plat.py index 368065c..2f198a8 100644 --- a/nmigen/build/plat.py +++ b/nmigen/build/plat.py @@ -236,7 +236,7 @@ class TemplatedPlatform(Platform): # `export VAR=` is treated on Linux. return re.sub(r'^\"\"$', "", os.environ[var_env]) elif var in kwargs: - return kwargs[var] + return textwrap.dedent(kwargs[var]).strip() else: return jinja2.Undefined(name=var) -- 2.30.2