packages feed

bbcode 0.1.0.0 → 0.1.0.1

raw patch · 4 files changed

+11/−4 lines, 4 files

Files

CHANGELOG.md view
@@ -1,5 +1,10 @@ # Revision history for BBCode -## 0.1.0.0 -- YYYY-mm-dd+## 0.1.0.0 -- 2023-09-10  * First version. Released on an unsuspecting world.++## 0.1.0.1 -- 2023-09-10++* Fix `Text.BBCode.pretty` for `Text.BBCode.spoilerNamed` when argument is+unicode. It was outputting escape sequence instead of actual characters
bbcode.cabal view
@@ -1,6 +1,6 @@ cabal-version:   3.0 name:            bbcode-version:         0.1.0.0+version:         0.1.0.1 synopsis:        Library for parsing, constructing, and printing BBCode description:   This is a set of utilities for: Parsing BBCode into AST(providing
lib/Text/BBCode.hs view
@@ -1,3 +1,4 @@+{-# OPTIONS_HADDOCK show-extensions #-} {-| Module      : Text.BBCode Description : Main module exporting builder interface and types
lib/Text/BBCode/Internal/Pretty.hs view
@@ -51,8 +51,9 @@  pretty (ElArg Box arg bb) = wrapArg Box arg $ pretty bb pretty (ElArg Image arg bb) = wrapArg Image arg $ pretty bb-pretty (ElArg Quote arg bb) = wrapArg Quote (show' arg) $ pretty bb-pretty (ElArg Spoiler arg bb) = wrapArg Spoiler (show' arg) $ pretty bb+-- BUG:/NOT? if arg contains double quote " then parser won't be able to parse it+pretty (ElArg Quote arg bb) = wrapArg Quote (mconcat ["\"", arg, "\""]) $ pretty bb+pretty (ElArg Spoiler arg bb) = wrapArg Spoiler (mconcat ["\"", arg, "\""]) $ pretty bb pretty (ElArg List arg (ElDocument bb)) =   wrapArg List arg     . (<> "\n")