Skip to content

Commit

Permalink
fix linebreaks
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Mar 4, 2015
1 parent 56634a1 commit 19a4e78
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/FsReveal/AssemblyInfo.fs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ open System.Reflection
[<assembly: AssemblyTitleAttribute("FsReveal")>]
[<assembly: AssemblyProductAttribute("FsReveal")>]
[<assembly: AssemblyDescriptionAttribute("FsReveal parses markdown or F# script files and generates reveal.js slides.")>]
[<assembly: AssemblyVersionAttribute("0.5.1")>]
[<assembly: AssemblyFileVersionAttribute("0.5.1")>]
[<assembly: AssemblyVersionAttribute("0.5.2")>]
[<assembly: AssemblyFileVersionAttribute("0.5.2")>]
do ()

module internal AssemblyVersionInformation =
let [<Literal>] Version = "0.5.1"
let [<Literal>] Version = "0.5.2"
5 changes: 4 additions & 1 deletion tests/FsReveal.Tests/SpeakerNotesSpecs.fs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ open FsUnit

let testTemplate ="{slides}"

let normalizeLineBreaks (text:string) = text.Replace("\r\n","\n").Replace("\n","\n")

let md = """
- title : FsReveal
Expand Down Expand Up @@ -58,4 +60,5 @@ let expectedOutput = """<section >
let ``can generate sections from markdown``() =
let presentation = FsReveal.GetPresentationFromMarkdown md
Formatting.GenerateHTML testTemplate presentation
|> shouldEqual expectedOutput
|> normalizeLineBreaks
|> shouldEqual (normalizeLineBreaks expectedOutput)

0 comments on commit 19a4e78

Please sign in to comment.