From d1128bef23dbddd181125a1efa8b937dfc451c30 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 21 Jun 2017 14:39:55 -0400 Subject: [PATCH] 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. --- pr_comment.c | 4 +--- 1 file changed, 1 insertion(+), 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; -- 2.39.5