summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2017-06-21 18:39:55 +0000
committerTom Lane2017-06-21 18:39:55 +0000
commitd1128bef23dbddd181125a1efa8b937dfc451c30 (patch)
treeb33d4672182cd8da2d95990cbbf6b60fa179a0fe
parent1c64f6883442e8e5f9ede00002dbeb7af073e90f (diff)
Revert "Tweak comment indentation to preserve 8-column-at-a-time rule."
This reverts commit 1c64f6883442e8e5f9ede00002dbeb7af073e90f. The only reason for pushing that commit at all is to document the hacked version of pg_bsd_indent that I used for Postgres commit e3860ffa4dd0dad0dd9eea4be9cc1412373a8c89. We aren't going to keep that hack going forward.
-rw-r--r--pr_comment.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/pr_comment.c b/pr_comment.c
index 8f90b8f..b0eacac 100644
--- a/pr_comment.c
+++ b/pr_comment.c
@@ -147,9 +147,7 @@ pr_comment(void)
else
ps.com_col = ps.decl_on_line || ps.ind_level == 0
? ps.decl_com_ind : ps.com_ind;
- if (ps.com_col < target_col)
- ps.com_col = 8 * (1 + (target_col - 1) / 8) + 1;
- else if (ps.com_col == target_col)
+ if (ps.com_col <= target_col)
ps.com_col = tabsize * (1 + (target_col - 1) / tabsize) + 1;
if (ps.com_col + 24 > adj_max_col)
adj_max_col = ps.com_col + 24;