summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasperVanDerJeugt <>2017-04-23 12:48:00 (GMT)
committerhdiff <hdiff@hdiff.luite.com>2017-04-23 12:48:00 (GMT)
commit13e333333ae617cb8a417b50a065dd93bd5a5bd0 (patch)
tree29ecaf248f45352ff36a0e6b1782bd38cc13d079
parentec2385c008604869ad9d7b34946cb4e8ae79edf6 (diff)
version 0.5.1.00.5.1.0
-rw-r--r--CHANGELOG.md6
-rw-r--r--patat.cabal4
-rw-r--r--src/Patat/Presentation/Display.hs4
3 files changed, 10 insertions, 4 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 583216b..7b126ec 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,11 @@
# Changelog
+- 0.5.1.0 (2017-04-23)
+ * Bump `aeson-1.2` dependency
+ * Fix vertical alignment of title slides
+ * Fix wrapping issue with inline code at end of line
+ * Add bash-completion script generation to Makefile
+
- 0.5.0.0 (2017-02-06)
* Add a `slideLevel` option & autodetect it. This changes the way `patat`
splits slides. For more information, see the `README` or the `man` page.
diff --git a/patat.cabal b/patat.cabal
index d0834d8..d56ba5f 100644
--- a/patat.cabal
+++ b/patat.cabal
@@ -1,5 +1,5 @@
Name: patat
-Version: 0.5.0.0
+Version: 0.5.1.0
Synopsis: Terminal-based presentations using Pandoc
Description: Terminal-based presentations using Pandoc
License: GPL-2
@@ -24,7 +24,7 @@ Executable patat
Default-language: Haskell2010
Build-depends:
- aeson >= 0.9 && < 1.2,
+ aeson >= 0.9 && < 1.3,
ansi-terminal >= 0.6 && < 0.7,
ansi-wl-pprint >= 0.6 && < 0.7,
base >= 4.6 && < 4.10,
diff --git a/src/Patat/Presentation/Display.hs b/src/Patat/Presentation/Display.hs
index e27de34..25a841e 100644
--- a/src/Patat/Presentation/Display.hs
+++ b/src/Patat/Presentation/Display.hs
@@ -94,7 +94,7 @@ displayPresentation pres@Presentation {..} = displayWithBorders pres $
offsetRow = (csRows canvasSize `div` 2) - (prows `div` 2)
offsetCol = (csCols canvasSize `div` 2) - (pcols `div` 2)
spaces = mconcat (replicate offsetCol PP.space) in
- mconcat (replicate (offsetRow - 1) PP.hardline) <$$>
+ mconcat (replicate (offsetRow - 3) PP.hardline) <$$>
PP.indent (PP.NotTrimmable spaces) (PP.NotTrimmable spaces) pblock
@@ -258,7 +258,7 @@ prettyInline theme@Theme {..} (Pandoc.Strong inlines) =
prettyInline Theme {..} (Pandoc.Code _ txt) =
themed themeCode $
- " " <> PP.string txt <> " "
+ PP.string (" " <> txt <> " ")
prettyInline theme@Theme {..} link@(Pandoc.Link _attrs text (target, _title))
| isReferenceLink link =