Skip to content

Commit

Permalink
Update html-templates.md
Browse files Browse the repository at this point in the history
Fixes an intermediate implementation to pass the test
  • Loading branch information
frozar authored Jan 25, 2025
1 parent 2f2b656 commit 3822d67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html-templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -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, "<h1>%s</h1><p>%s</p>", p.Title, p.Description)
_, err := fmt.Fprintf(w, "<h1>%s</h1>\n<p>%s</p>\n", p.Title, p.Description)
if err != nil {
return err
}
Expand Down

0 comments on commit 3822d67

Please sign in to comment.