Correction : Format.Ledger.Read.posting : permet des espaces.
authorJulien Moutinho <julm+hcompta@autogeree.net>
Thu, 30 Apr 2015 19:06:35 +0000 (21:06 +0200)
committerJulien Moutinho <julm+hcompta@autogeree.net>
Thu, 30 Apr 2015 19:10:45 +0000 (21:10 +0200)
lib/Hcompta/Format/Ledger/Read.hs

index e0cd61002799690b0852381d138f39f678e66f8a..2d0ccd7f050031c14db1c894033df835299363ce 100644 (file)
@@ -537,7 +537,8 @@ posting = do
        amounts_ <-
                R.choice_try
                 [ do
-                       _ <- R.count 2 (space_horizontal)
+                       _ <- R.count 2 space_horizontal
+                       R.skipMany $ space_horizontal
                        Amount.from_List <$> do
                                R.many_separated amount $ R.try $ do
                                        R.skipMany $ space_horizontal