swiftgemtext

[ACTIVE] gemtext parsing in swift
git clone git://git.figbert.com/swiftgemtext.git
Log | Files | Refs | README

commit da81d21bc3b1e13fd041c4cf4adfbce6f61a0c3e
parent d9db4b17297f17cbccbfa025f3dd494027fd4291
Author: FIGBERT <figbert@figbert.com>
Date:   Tue, 20 Apr 2021 00:59:52 -0700

Fix quote line return in parsePlainLine()

All tests now pass successfully.

Diffstat:
MSources/SwiftGemtext/SwiftGemtext.swift | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Sources/SwiftGemtext/SwiftGemtext.swift b/Sources/SwiftGemtext/SwiftGemtext.swift @@ -54,7 +54,7 @@ struct SwiftGemtext { } else if line.starts(with: "* ") { // Unordered List return LineType.UnorderedList(line.dropFirst(2).trimmingCharacters(in: .whitespacesAndNewlines)) } else if line.starts(with: ">") { // Quote - return LineType.Quote(String(line)) + return LineType.Quote(String(line.dropFirst(2))) } else if line.trimmingCharacters(in: .whitespacesAndNewlines) == "" { // Empty Line return LineType.EmptyLine } else {