diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2008-09-06 02:51:44 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2008-09-06 02:51:44 +0000 |
commit | 2127b7d5135af88dc3f2e7d78136ce24547bca3b (patch) | |
tree | 2f2153999cc1bb5ad70bacbb7cffd7bb18ac3b4e /Text/Pandoc/Writers/Docbook.hs | |
parent | 4dca8f6e75948d489e8127119ce3787cb97ee1e2 (diff) | |
download | pandoc-2127b7d5135af88dc3f2e7d78136ce24547bca3b.tar.gz |
Changed Float to Double in definition of Table element.
(Double is more efficient in GHC.)
Truncate width in opendocument output to 2 decimal places.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1418 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'Text/Pandoc/Writers/Docbook.hs')
-rw-r--r-- | Text/Pandoc/Writers/Docbook.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Text/Pandoc/Writers/Docbook.hs b/Text/Pandoc/Writers/Docbook.hs index 9ed4e808f..025727076 100644 --- a/Text/Pandoc/Writers/Docbook.hs +++ b/Text/Pandoc/Writers/Docbook.hs @@ -165,7 +165,7 @@ blockToDocbook opts (Table caption aligns widths headers rows) = colHeadsToDocbook :: WriterOptions -> [[Char]] - -> [Float] + -> [Double] -> [[Block]] -> Doc colHeadsToDocbook opts alignStrings widths headers = @@ -188,7 +188,7 @@ tableRowToDocbook opts aligns cols = inTagsIndented "tr" $ tableItemToDocbook :: WriterOptions -> [Char] -> [Char] - -> Float + -> Double -> [Block] -> Doc tableItemToDocbook opts tag align width item = |