diff --git a/html-templates.md b/html-templates.md index 695cd73a..8121b8be 100644 --- a/html-templates.md +++ b/html-templates.md @@ -195,7 +195,7 @@ New lines! Who cares? Well, our test does, because it's matching on an exact str ```go func Render(w io.Writer, p Post) error { - _, err := fmt.Fprintf(w, "

%s

%s

", p.Title, p.Description) + _, err := fmt.Fprintf(w, "

%s

\n

%s

\n", p.Title, p.Description) if err != nil { return err }