TP-51020 | Fixed houston commands alignment issue (#324)
* TP-38709 | Merging the changes to master on the logfix * TP-51020 | Added help commands button in incident channel which displays the list of supported commands * TP-51020 | Fixed houston commands alignment issue
This commit is contained in:
@@ -50,7 +50,7 @@ func (action *HelpCommandsAction) ProcessAction(userID, channelID string, reques
|
||||
command, helpText := util.SplitUntilWord(h, ":")
|
||||
formattedHelpMessage += fmt.Sprintf("%-91s: %s\n", strings.TrimSpace(command), strings.TrimSpace(helpText))
|
||||
}
|
||||
err = appcontext.GetSlackService().PostEphemeralByChannelID(formattedHelpMessage, userID, false, channelID)
|
||||
err = appcontext.GetSlackService().PostEphemeralByChannelID(fmt.Sprintf("```%s```", formattedHelpMessage), userID, false, channelID)
|
||||
if err != nil {
|
||||
logger.Error(fmt.Sprintf("%s failed to post help command response. %+v", helpCommandsLogTag, err))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user