Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 1261fe1

Browse files
committed
The attached tiny patch removes spurious carriage returns that might be
copied by the script that generates psql's help. (You can get the spurious CRs if you use a CVS client on Windows that does line end translation.) Elsewhere, the patch should be totally benign. This removes quite a number of the compile warnings I posted the other day. Andrew Dunstan
1 parent 3a8cdf3 commit 1261fe1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/psql/create_help.pl

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#
66
# Copyright (c) 2000-2003, PostgreSQL Global Development Group
77
#
8-
# $PostgreSQL: pgsql/src/bin/psql/create_help.pl,v 1.10 2003/11/29 19:52:06 pgsql Exp $
8+
# $PostgreSQL: pgsql/src/bin/psql/create_help.pl,v 1.11 2004/06/11 03:56:46 momjian Exp $
99
#################################################################
1010

1111
#
@@ -109,7 +109,7 @@
109109
$cmddesc =~ s/\"/\\"/g;
110110

111111
$cmdsynopsis =~ s/<[^>]+>//g;
112-
$cmdsynopsis =~ s/\n/\\n/g;
112+
$cmdsynopsis =~ s/\r?\n/\\n/g;
113113
$cmdsynopsis =~ s/\"/\\"/g;
114114

115115
print OUT " { \"$cmdname\",\n N_(\"$cmddesc\"),\n N_(\"$cmdsynopsis\") },\n\n";

0 commit comments

Comments
 (0)