Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1261fe1

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 thespurious CRs if you use a CVS client on Windows that does line endtranslation.) Elsewhere, the patch should be totally benign.This removes quite a number of the compile warnings I posted the otherday.Andrew Dunstan
1 parent3a8cdf3 commit1261fe1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/bin/psql/create_help.pl

Lines changed: 2 additions & 2 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp