From c6e25ed1afa75a8fe03ed1b71f522dcbd9f4bb66 Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Wed, 7 Nov 2001 22:10:02 +0000
Subject: [PATCH] Fix replacement of extern C string.

---
 src/tools/pgindent/pgindent | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/tools/pgindent/pgindent b/src/tools/pgindent/pgindent
index c0ea6255a5f..dd7704649e1 100755
--- a/src/tools/pgindent/pgindent
+++ b/src/tools/pgindent/pgindent
@@ -1487,12 +1487,12 @@ do
 	cat /tmp/$$a |
 	sed 's;^/\*\(DATA(.*\)\*/$;\1;' |
 	sed 's;^/\*\(CATALOG(.*\)\*/$;\1;' |
-	sed 's;^/\* Open extern \"C\" \*/$;extern    "C"\
-{;' |
-	sed 's;^/\* Close extern \"C\" \*/$;};' |
 # remove tabs and retab with four spaces
 	detab -t8 -qc |
 	entab -t4 -qc |
+	sed 's;^/\* Open extern \"C\" \*/$;extern		"C"\
+{;' |
+	sed 's;^/\* Close extern \"C\" \*/$;};' |
 	sed 's;/\*---X_X;/* ---;g' |
 # workaround indent bug
 	sed 's;^static[ 	][ 	]*;static ;g' |
-- 
GitLab