From: | Roger Leigh <rleigh(at)debian(dot)org> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Cc: | Roger Leigh <rleigh(at)debian(dot)org> |
Subject: | [PATCH 8/9] psql: print_aligned_vertical_line: Correct alignment |
Date: | 2009-08-22 18:13:33 |
Message-ID: | 1250964814-22262-2-git-send-email-rleigh@debian.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Correct a corner case where the middle column separator overlaps
the right edge of the record number.
Signed-off-by: Roger Leigh <rleigh(at)debian(dot)org>
---
src/bin/psql/print.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/bin/psql/print.c b/src/bin/psql/print.c
index be81adc..c6394ad 100644
--- a/src/bin/psql/print.c
+++ b/src/bin/psql/print.c
@@ -1034,16 +1034,16 @@ print_aligned_vertical_line(const printTableContent *cont,
if (opt_border > 0)
{
- if (--reclen <= 0)
+ if (reclen-- <= 0)
fputs(format->hrule, fout);
- if (--reclen <= 0)
+ if (reclen-- <= 0)
fputs(lformat->midvrule, fout);
- if (--reclen <= 0)
+ if (reclen-- <= 0)
fputs(format->hrule, fout);
}
else
{
- if (reclen-- > 0)
+ if (reclen-- <= 0)
fputs(" ", fout);
}
if (reclen < 0)
--
1.6.3.3
From | Date | Subject | |
---|---|---|---|
Next Message | Roger Leigh | 2009-08-22 18:13:34 | [PATCH 9/9] psql: print_aligned_vertical: Correct indentation |
Previous Message | Roger Leigh | 2009-08-22 18:13:32 | Unicode UTF-8 table formatting for psql text output |