From 2b211ca4807fab54591b53e18ce048018a59d891 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Sat, 25 Jan 2020 19:06:03 -0500 Subject: [PATCH] prettier html --- markitzero.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/markitzero.go b/markitzero.go index 7641587..8f76b4f 100644 --- a/markitzero.go +++ b/markitzero.go @@ -109,20 +109,20 @@ func markitzero(s string) string { } switch cell { case ":---": - alignments[i] = `style="text-align: left"` + alignments[i] = ` style="text-align: left"` continue case ":---:": - alignments[i] = `style="text-align: center"` + alignments[i] = ` style="text-align: center"` continue case "---:": - alignments[i] = `style="text-align: right"` + alignments[i] = ` style="text-align: right"` continue } if !hastr { r.WriteString("") hastr = true } - fmt.Fprintf(&r, "", alignments[i]) + fmt.Fprintf(&r, "", alignments[i]) r.WriteString(cell) } }