Skip to content

Commit

Permalink
Playground: fix .cr files served in workbooks. end of lines were chomped
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian J. Cardiff committed Jan 23, 2017
1 parent 4d03a56 commit 15032cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/crystal/tools/playground/server.cr
Expand Up @@ -246,7 +246,7 @@ module Crystal::Playground
private def crystal_source_to_markdown(filename)
String.build do |io|
header = true
File.each_line(filename) do |line|
File.each_line(filename, chomp: false) do |line|
if header && line[0] != '\n' && line[0] != '#'
header = false
io << "```playground\n"
Expand Down

0 comments on commit 15032cc

Please sign in to comment.