@@ -32,8 +32,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
32Tokenizer for groff formats (man, ms).
32Tokenizer for groff formats (man, ms).
34module Text.Pandoc.Readers.Roff
34module Text.Pandoc.Readers.Roff
36− , FontSpec(..)
35+ ( FontSpec(..)
37 , defaultFontSpec
36 , defaultFontSpec
38 , LinePart(..)
37 , LinePart(..)
@@ -83,8 +82,6 @@ data FontSpec = FontSpec{ fontBold :: Bool
83defaultFontSpec :: FontSpec
82defaultFontSpec :: FontSpec
84defaultFontSpec = FontSpec False False False
83defaultFontSpec = FontSpec False False False
86−type MacroKind = String
88data LinePart = RoffStr String
85data LinePart = RoffStr String
89 | Font FontSpec
86 | Font FontSpec
90 | MacroArg Int
87 | MacroArg Int
@@ -106,7 +103,7 @@ type TableRow = ([CellFormat], [RoffTokens])
107data RoffToken = MLine [LinePart]
104data RoffToken = MLine [LinePart]
108 | MEmptyLine
105 | MEmptyLine
109− | MMacro MacroKind [Arg] SourcePos
106+ | MMacro String [Arg] SourcePos
110 | MTable [TableOption] [TableRow] SourcePos
107 | MTable [TableOption] [TableRow] SourcePos
111 deriving Show
108 deriving Show