Skip to content
Discussion options

You must be logged in to vote

@AtifChy nospace uses this function under the hood which then highly likely ruins that glyphs (for some reason, it's still correct). I also can't reproduce this on my machine, it correctly removes all spaces. The easiest fix for this is to use replace.

        template:
          "on <b><magenta>{{ .HEAD }} </>{{ if .Working }}<b><black>[{{ end }}\
          <cyan>\
          {{ if .BranchStatus }}{{ .BranchStatus | replace " " "" }}{{ end }}</>\
          {{ if .Working.Changed }} <red>{{ .Working.String | replace " " "" }}</>{{ end }}\
          {{ if .Staging.Changed }} <green>{{ .Staging.String | replace " " "" }}</>{{ end }}\
          {{ if gt .StashCount 0 }} <yellow>${{ .StashCoun…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AtifChy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
2 participants
Converted from issue

This discussion was converted from issue #6864 on October 06, 2025 13:54.