Latex Reader: Block commands code cleanup

This commit is contained in:
Nikolay Yakimov
2015-03-31 14:32:42 +03:00
parent 6a0d500f99
commit f1eb1ab9cf
+2 -3
View File
@@ -253,10 +253,9 @@ blockCommand = try $ do
let raw = do
rawcommand <- getRawCommand name'
transformed <- applyMacros' rawcommand
guard $ transformed /= rawcommand
notFollowedBy $ parseFromString inlines transformed
if transformed /= rawcommand
then parseFromString blocks transformed
else mzero
parseFromString blocks transformed
case M.lookup name' blockCommands of
Just p -> p
Nothing -> case M.lookup name blockCommands of