Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

V = 5 #4

Merged
merged 1 commit into from

2 participants

@michaelt

V = 5

@jgm jgm merged commit 258b105 into jgm:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 10, 2011
  1. @michaelt

    roman V == 5, not 10

    michaelt authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  Text/Pandoc2/Shared.hs
View
2  Text/Pandoc2/Shared.hs
@@ -158,7 +158,7 @@ fromRoman t =
go "X" xs = go "IX" xs
go "IX" ('I':'X':xs) = fmap (+ 9) $ go "V" xs
go "IX" xs = go "V" xs
- go "V" ('V':xs) = fmap (+ 10) $ go "V" xs
+ go "V" ('V':xs) = fmap (+ 5) $ go "V" xs
go "V" xs = go "IV" xs
go "IV" ('I':'V':_) = Just 4
go "IV" xs = go "I" xs
Something went wrong with that request. Please try again.