{"action":"closed","issue":{"url":"https://api.github.com/repos/gpoore/minted/issues/57","labels_url":"https://api.github.com/repos/gpoore/minted/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/gpoore/minted/issues/57/comments","events_url":"https://api.github.com/repos/gpoore/minted/issues/57/events","html_url":"https://github.com/gpoore/minted/issues/57","id":47868256,"number":57,"title":"Background color for inline code makes it span until the end of the line and adds them to environments as well","user":{"login":"jonasc","id":2046766,"avatar_url":"https://avatars.githubusercontent.com/u/2046766?v=3","gravatar_id":"","url":"https://api.github.com/users/jonasc","html_url":"https://github.com/jonasc","followers_url":"https://api.github.com/users/jonasc/followers","following_url":"https://api.github.com/users/jonasc/following{/other_user}","gists_url":"https://api.github.com/users/jonasc/gists{/gist_id}","starred_url":"https://api.github.com/users/jonasc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonasc/subscriptions","organizations_url":"https://api.github.com/users/jonasc/orgs","repos_url":"https://api.github.com/users/jonasc/repos","events_url":"https://api.github.com/users/jonasc/events{/privacy}","received_events_url":"https://api.github.com/users/jonasc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gpoore/minted/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-11-05T18:08:42Z","updated_at":"2015-01-16T06:04:30Z","closed_at":"2015-01-16T06:04:30Z","body":"Try the following code:\r\n~~~.latex\r\n\\documentclass[a5paper,landscape,12pt]{article}\r\n\r\n\\usepackage[outputdir=bin,cache]{minted}\r\n\\newmintinline[haskell]{haskell}{fontsize=\\footnotesize,bgcolor=lightgray}\r\n\\newminted[haskellcode]{haskell}{linenos=false,fontsize=\\fontsize{10pt}{1em}}\r\n\r\n\\begin{document}\r\nSome code \\haskell|t :: Int -> String| to show the problem of background colors for inline minted stuff.\r\n\r\n\r\nAdditionally setting the inline color somehow adds them to the environment as well but adding \\verb|[bgcolor=white]| helps.\r\n\r\n\\begin{minted}{haskell}\r\np :: [Int]\r\np = [1..]\r\n\\end{minted}\r\n\r\n\\begin{minted}[bgcolor=white]{haskell}\r\np :: [Int]\r\np = [1..]\r\n\\end{minted}\r\n\r\nEnvironments with \\verb|\\newminted| are affected, too.\r\n\r\n\\begin{haskellcode}\r\np :: [Int]\r\np = [1..]\r\n\\end{haskellcode}\r\n\\end{document}\r\n\r\n~~~\r\n\r\nWhich gives this output\r\n![test](https://cloud.githubusercontent.com/assets/2046766/4922973/a7b4a132-6516-11e4-8045-ffd06150972a.png)\r\n\r\nEspecially the inline background color is really bugging me. Is there some easy way to fix this?\r\n\r\nThanks.\r\n"}}