~ghost08/wt

f5861195c3312a0237090c15189d48dba64970c3 — ghost08 2 years ago 7e422db
Replace multiline description with spaces
1 files changed, 2 insertions(+), 1 deletions(-)

M main.go
M main.go => main.go +2 -1
@@ 5,6 5,7 @@ import (
	"log"
	"os"
	"path/filepath"
	"strings"
	"time"

	"github.com/alecthomas/kong"


@@ 146,7 147,7 @@ func start() error {
	es = append(Entries{
		Entry{
			Project:     CLI.Start.Project,
			Description: CLI.Start.Description,
			Description: strings.ReplaceAll(CLI.Start.Description, "\n", " "),
			Date:        time.Date(y, m, d, 0, 0, 0, 0, now.Location()),
			Start:       now,
		},