Remove newline from QR code

This commit is contained in:
Unrud 2022-01-24 08:58:41 +01:00
parent 9806aa26e1
commit f741196640

View file

@ -234,8 +234,8 @@ func main() {
if tls {
scheme = "https"
}
url := fmt.Sprintf("%s://%s/#%s\n", scheme, domain, secret)
readyMsg := "ready: " + url
url := fmt.Sprintf("%s://%s/#%s", scheme, domain, secret)
readyMsg := "ready: " + url + "\n"
qrCode, _ := GenerateQRCode(url, TerminalSupportsColor(os.Stderr.Fd()))
readyMsg += qrCode
if !tls {