From aa102c91f6758994b6cdf5482b26bb148f5795c3 Mon Sep 17 00:00:00 2001
From: sudoforge <no-reply@sudoforge.com>
Date: Thu, 8 May 2025 17:35:09 -0700
Subject: [PATCH] fix: remove errata from string literal (#1403)

This change replaces tabs inside of a raw string literal used as a patch
for the shell completion files with spaces, and removes a trailing
space. This fixes an issue where regeneration of the file would lead to
a diff.

Change-Id: I3469a859ed63fe4ef9b8b6f156ff0ce5cb7af91c
---
 misc/completion/bash/git-bug | 6 +++---
 misc/completion/generate.go  | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/misc/completion/bash/git-bug b/misc/completion/bash/git-bug
index 42263e09..49c7c77b 100644
--- a/misc/completion/bash/git-bug
+++ b/misc/completion/bash/git-bug
@@ -352,11 +352,11 @@ _git_bug() {
         __git-bug_init_completion -n "=:" || return
     fi
 
-	# START PATCH
-	# replace in the array ("git","bug", ...) to ("git-bug", ...) and adjust the index in cword 
+    # START PATCH
+    # replace in the array ("git","bug", ...) to ("git-bug", ...) and adjust the index in cword
     words=("git-bug" "${words[@]:2}")
     cword=$(($cword-1))
-	# END PATCH
+    # END PATCH
 
     __git-bug_debug
     __git-bug_debug "========= starting completion logic =========="
diff --git a/misc/completion/generate.go b/misc/completion/generate.go
index 245c561c..b64c1034 100644
--- a/misc/completion/generate.go
+++ b/misc/completion/generate.go
@@ -66,11 +66,11 @@ _git_bug() {
         __git-bug_init_completion -n "=:" || return
     fi
 
-	# START PATCH
-	# replace in the array ("git","bug", ...) to ("git-bug", ...) and adjust the index in cword
+    # START PATCH
+    # replace in the array ("git","bug", ...) to ("git-bug", ...) and adjust the index in cword
     words=("git-bug" "${words[@]:2}")
     cword=$(($cword-1))
-	# END PATCH
+    # END PATCH
 
     __git-bug_debug
     __git-bug_debug "========= starting completion logic =========="
-- 
GitLab