Commit: fb49a3a6ba37d09d59037a5a7b09c1f261944b26
Parent: 99e161b398eeedfdf93bd373c26f32f5604c5592
Author: Vi Grey
Date: 2024-05-03 11:50 UTC
Summary: Add tag inside
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 dd3cd7c..370fb07 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.26] - 2024-05-03
+
+### Added
+- tag inside
\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("
+
+
## [0.0.25] - 2024-05-03
### Fixed
diff --git a/src/html.go b/src/html.go
index ba25960..d8d426d 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("
"%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 7440a6e..ff5812b 100644 --- a/src/huginn.go +++ b/src/huginn.go @@ -9,7 +9,7 @@ import ( const ( PROGRAM = "huginn" - VERSION = "0.0.25" + VERSION = "0.0.26" ) func init() {