Skip to content

Commit

Permalink
Fixed spacing bugs involving code block attributes.
Browse files Browse the repository at this point in the history
Closes #763.
  • Loading branch information
jgm committed Mar 12, 2013
1 parent f7229b1 commit 54782c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Text/Pandoc/Readers/RST.hs
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ codeblock numberLines lang body =
kvs = case numberLines of
Just "" -> []
Nothing -> []
Just n -> [("startFrom",n)]
Just n -> [("startFrom",trim n)]

---
--- note block
Expand Down
2 changes: 1 addition & 1 deletion src/Text/Pandoc/Writers/Markdown.hs
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ blockToMarkdown opts (CodeBlock attribs str) = return $
| otherwise -> replicate (n+1) '~'
backticks = text "```"
attrs = if isEnabled Ext_fenced_code_attributes opts
then attrsToMarkdown attribs
then nowrap $ attrsToMarkdown attribs
else empty
blockToMarkdown opts (BlockQuote blocks) = do
st <- get
Expand Down

0 comments on commit 54782c2

Please sign in to comment.