diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-02-20 21:44:39 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2016-02-20 21:44:39 -0800 |
commit | 29706ee02dcfd6f211bf3592babf627baae0a3e9 (patch) | |
tree | a10a3b55c7ba03e968e330d6005bb868b9e8cb86 /src/Text/Pandoc/Readers | |
parent | 649cfb61b85ee4c512365afada0c056c3f8b7148 (diff) | |
parent | fabbd1aa79360dcaadf309308c83e4dab74b60b4 (diff) | |
download | pandoc-29706ee02dcfd6f211bf3592babf627baae0a3e9.tar.gz |
Merge pull request #2646 from tarleb/org-figure-with-no-name
Prefix even empty figure names with "fig:"
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r-- | src/Text/Pandoc/Readers/Org.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Text/Pandoc/Readers/Org.hs b/src/Text/Pandoc/Readers/Org.hs index 3f29d06ef..7dd611be3 100644 --- a/src/Text/Pandoc/Readers/Org.hs +++ b/src/Text/Pandoc/Readers/Org.hs @@ -2,7 +2,7 @@ {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE MultiParamTypeClasses, FlexibleContexts, FlexibleInstances #-} {- -Copyright (C) 2014-2015 Albert Krewinkel <tarleb+pandoc@moltkeplatz.de> +Copyright (C) 2014-2016 Albert Krewinkel <tarleb+pandoc@moltkeplatz.de> This program is free software; you can redistribute it and/or modify it 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 {- | Module : Text.Pandoc.Readers.Org - Copyright : Copyright (C) 2014-2015 Albert Krewinkel + Copyright : Copyright (C) 2014-2016 Albert Krewinkel License : GNU GPL, version 2 or above Maintainer : Albert Krewinkel <tarleb+pandoc@moltkeplatz.de> @@ -629,7 +629,7 @@ figure = try $ do maybeNam <- lookupBlockAttribute "name" guard $ isJust maybeCap || isJust maybeNam return ( fromMaybe mempty maybeCap - , maybe mempty withFigPrefix maybeNam ) + , withFigPrefix $ fromMaybe mempty maybeNam ) withFigPrefix cs = if "fig:" `isPrefixOf` cs then cs |