Commit: b68dca25ec95e54f2c86e77343003969972b3345 Parent: fb49a3a6ba37d09d59037a5a7b09c1f261944b26 Author: Vi Grey Date: 2024-05-03 22:18 UTC Summary: Change tags to tags CHANGELOG.txt | 6 ++++++ src/html.go | 8 ++++---- src/huginn.go | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 370fb07..5e1b583 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -2,6 +2,12 @@ All notable changes to this project will be documented in this file. +## [0.0.27] - 2024-05-03 + +### Changed +- tags to tags + + ## [0.0.26] - 2024-05-03 ### Added diff --git a/src/html.go b/src/html.go index d8d426d..086462d 100644 --- a/src/html.go +++ b/src/html.go @@ -196,13 +196,13 @@ func translateGemtextFileToHTML(hf *os.File, p string, textOnly bool) { lastLine = line } if lastLine.lineType == GEMTEXT_QUOTE { - hf.Write([]byte("\n")) + hf.Write([]byte("\n")) } } func translateGemtextLineToHTML(line, lastLine gemtextLine, preformattedToggle, textOnly bool, p string) (htmlString string) { if line.lineType != lastLine.lineType && lastLine.lineType == GEMTEXT_QUOTE { - htmlString += "\n" + htmlString += "\n" } switch line.lineType { case GEMTEXT_HEADING: @@ -212,11 +212,11 @@ func translateGemtextLineToHTML(line, lastLine gemtextLine, preformattedToggle, case GEMTEXT_LIST_ITEM: htmlString += fmt.Sprintf("\n", escapeHTMLContent(line.text)) case GEMTEXT_QUOTE: - // if first quote line, print "
%s", + // if first quote line, print "
%s", // otherwise print "
\n%s" // The reason for the \n after
is to prevent extra spaces if lastLine.lineType != GEMTEXT_QUOTE { - htmlString += "
" + htmlString += "
" } else { htmlString += "
\n" } diff --git a/src/huginn.go b/src/huginn.go index ff5812b..8a47410 100644 --- a/src/huginn.go +++ b/src/huginn.go @@ -9,7 +9,7 @@ import ( const ( PROGRAM = "huginn" - VERSION = "0.0.26" + VERSION = "0.0.27" ) func init() {