Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
21d16121
Commit
21d16121
authored
Aug 07, 2004
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore trailing spaces in psql \h.
Greg Sabino Mullane
parent
a1c2ed7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/bin/psql/help.c
src/bin/psql/help.c
+3
-3
No files found.
src/bin/psql/help.c
View file @
21d16121
...
...
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2003, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/bin/psql/help.c,v 1.9
0 2004/07/15 03:56:06
momjian Exp $
* $PostgreSQL: pgsql/src/bin/psql/help.c,v 1.9
1 2004/08/07 03:36:07
momjian Exp $
*/
#include "postgres_fe.h"
#include "common.h"
...
...
@@ -310,9 +310,9 @@ helpSQL(const char *topic, unsigned short int pager)
int
nl_count
=
0
;
char
*
ch
;
/* don't care about trailing spaces */
/* don't care about trailing spaces
or semicolons
*/
len
=
strlen
(
topic
);
while
(
topic
[
len
-
1
]
==
' '
)
while
(
topic
[
len
-
1
]
==
' '
||
topic
[
len
-
1
]
==
';'
)
len
--
;
/* Count newlines for pager */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment