Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove some more reads #5180

Closed
3 tasks
jgm opened this issue Dec 26, 2018 · 0 comments · Fixed by #5186
Closed
3 tasks

Remove some more reads #5180

jgm opened this issue Dec 26, 2018 · 0 comments · Fixed by #5186

Comments

@jgm
Copy link
Owner

jgm commented Dec 26, 2018

Replace with safeRead.

  • src/Text/Pandoc/Readers/TikiWiki.hs 505: return $B.str [toEnum (read inner :: Int) :: Char]

  • src/Text/Pandoc/Writers/Docx.hs 237: let pgContentWidth = (-) <$> (read <$> mbAttrSzWidth ::Maybe Integer) 239: (+) <$> (read <$> mbAttrMarRight ::Maybe Integer) 240: <*> (read <$> mbAttrMarLeft ::Maybe Integer)

  • src/Text/Pandoc/Writers/LaTeX.hs 558: '%':ds -> showFl (read (reverse ds) / 100 :: Double)

mb21 added a commit to mb21/pandoc that referenced this issue Dec 27, 2018
mb21 added a commit to mb21/pandoc that referenced this issue Dec 27, 2018
mb21 added a commit to mb21/pandoc that referenced this issue Dec 27, 2018
mb21 added a commit to mb21/pandoc that referenced this issue Dec 27, 2018
@jgm jgm closed this as completed in #5186 Dec 31, 2018
jgm pushed a commit that referenced this issue Dec 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant