From 3d00478629093d1bef3887ccdfd6f60afea6e891 Mon Sep 17 00:00:00 2001 From: prmadev Date: Sun, 8 Oct 2023 16:50:05 +0330 Subject: [PATCH] feat: make hr tags self closing --- org/html_writer.go | 2 +- org/testdata/footnotes.html | 2 +- org/testdata/footnotes_in_headline.html | 2 +- org/testdata/misc.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/org/html_writer.go b/org/html_writer.go index c1c6a15..bd8a119 100644 --- a/org/html_writer.go +++ b/org/html_writer.go @@ -226,7 +226,7 @@ func (w *HTMLWriter) WriteFootnotes(d *Document) { return } w.WriteString(`
` + "\n") - w.WriteString(`
` + "\n") + w.WriteString(`
` + "\n") w.WriteString(`
` + "\n") for i, definition := range w.footnotes.list { id := i + 1 diff --git a/org/testdata/footnotes.html b/org/testdata/footnotes.html index cb9d7d5..a81efa5 100644 --- a/org/testdata/footnotes.html +++ b/org/testdata/footnotes.html @@ -33,7 +33,7 @@ this is not part of
-
+
1 diff --git a/org/testdata/footnotes_in_headline.html b/org/testdata/footnotes_in_headline.html index b9769d8..07e77bd 100644 --- a/org/testdata/footnotes_in_headline.html +++ b/org/testdata/footnotes_in_headline.html @@ -10,7 +10,7 @@ Title -
+
1 diff --git a/org/testdata/misc.html b/org/testdata/misc.html index 66639ac..6c79fbd 100644 --- a/org/testdata/misc.html +++ b/org/testdata/misc.html @@ -574,7 +574,7 @@ Footnotes
-
+
1