Skip to content

Commit d18f5c3

Browse files
committed
Ignore blank lines in typedef file.
1 parent 35390aa commit d18f5c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/pgindent/pgindent

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
# $PostgreSQL: pgsql/src/tools/pgindent/pgindent,v 1.98 2008/01/16 20:13:44 momjian Exp $
3+
# $PostgreSQL: pgsql/src/tools/pgindent/pgindent,v 1.99 2008/04/16 21:03:08 momjian Exp $
44

55
# Known bugs:
66
#
@@ -133,7 +133,7 @@ do
133133
# We get the list of typedef's from /src/tools/find_typedef
134134
indent -bad -bap -bc -bl -d0 -cdb -nce -nfc1 -di12 -i4 -l79 \
135135
-lp -nip -npro -bbb $EXTRA_OPTS \
136-
`cat "$TYPEDEFS" | sed 's/.*/-T& /'` \
136+
`cat "$TYPEDEFS" | sed -e '/^$/d' -e 's/.*/-T& /'` \
137137
/tmp/$$a >/tmp/$$ 2>&1
138138

139139
if [ "$?" -ne 0 -o -s /tmp/$$ ]

0 commit comments

Comments
 (0)