walle / gimli

Utility for converting markup files to pdf files
https://github.com/walle/gimli
MIT License
538 stars 44 forks source link

Code blocks are indented on first line #12

Closed trevor closed 12 years ago

trevor commented 13 years ago

When creating a code block the first line has an extra space when done with a tab or four spaces, no issue when using 'pre'.

https://raw.github.com/gist/1040892/b3a572e97635a70e25545824340d704290709721/test.md

walle commented 13 years ago

That is a weird bug. I'll look into it. Won't be able to do it until next week though.

Thanks for the report!

cladmi commented 12 years ago

It looks like it is not an extra space but something which has the size of a half space.

Because putting 4 spaces on the first line and 5 at the second doesn't align all the text but puts an extra half space in front of the following lines.

walle commented 12 years ago

This was probably some issue with Albino. I have changed the syntax highlighting to use CodeRay. Seems to work as it should now.