From 5d5c6e2dd9c5fbdada5887485b2bc8117ecb0c72 Mon Sep 17 00:00:00 2001
From: P. J. McDermott <pj@pehjota.net>
Date: Sun, 21 Feb 2016 13:21:11 -0500
Subject: eshtrans/backend: Don't add a space after "("

---
(limited to 'eshtrans/backend')

diff --git a/eshtrans/backend/codegen.esh b/eshtrans/backend/codegen.esh
index dea169b..1b2d168 100644
--- a/eshtrans/backend/codegen.esh
+++ b/eshtrans/backend/codegen.esh
@@ -35,7 +35,11 @@ codegen_sub()
 	for t in ${array}; do
 		toktext "${t}"
 		case "${t%${US}*}" in
-			T_NEWLINE)
+			T_NEWLINE|T_LPAREN)
+				# Indenting lines can mess up here-documents.
+				# Adding a space after "(" can mess up function
+				# definitions (on zsh at least, while other
+				# shells accept the space).
 				;;
 			*)
 				printf ' '
--
cgit v0.9.1