@@ -2,7 +2,7 @@
2{-# LANGUAGE GeneralizedNewtypeDeriving #-}
2{-# LANGUAGE GeneralizedNewtypeDeriving #-}
3{-# LANGUAGE MultiParamTypeClasses, FlexibleContexts, FlexibleInstances #-}
3{-# LANGUAGE MultiParamTypeClasses, FlexibleContexts, FlexibleInstances #-}
5−Copyright (C) 2014-2015 Albert Krewinkel <tarleb+pandoc@moltkeplatz.de>
5+Copyright (C) 2014-2016 Albert Krewinkel <tarleb+pandoc@moltkeplatz.de>
7This program is free software; you can redistribute it and/or modify
7This program is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
8it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 Module : Text.Pandoc.Readers.Org
23 Module : Text.Pandoc.Readers.Org
24− Copyright : Copyright (C) 2014-2015 Albert Krewinkel
24+ Copyright : Copyright (C) 2014-2016 Albert Krewinkel
25 License : GNU GPL, version 2 or above
25 License : GNU GPL, version 2 or above
27 Maintainer : Albert Krewinkel <tarleb+pandoc@moltkeplatz.de>
27 Maintainer : Albert Krewinkel <tarleb+pandoc@moltkeplatz.de>
@@ -629,7 +629,7 @@ figure = try $ do
629 maybeNam <- lookupBlockAttribute "name"
629 maybeNam <- lookupBlockAttribute "name"
630 guard $ isJust maybeCap || isJust maybeNam
630 guard $ isJust maybeCap || isJust maybeNam
631 return ( fromMaybe mempty maybeCap
631 return ( fromMaybe mempty maybeCap
632− , maybe mempty withFigPrefix maybeNam )
632+ , withFigPrefix $ fromMaybe mempty maybeNam )
633 withFigPrefix cs =
633 withFigPrefix cs =
634 if "fig:" `isPrefixOf` cs
634 if "fig:" `isPrefixOf` cs