Skip to content

Commit

Permalink
Fixed incorrect docs after chomp change
Browse files Browse the repository at this point in the history
  • Loading branch information
asterite committed Dec 20, 2016
1 parent bf5f57b commit ceaeb77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/crystal/tools/doc/generator.cr
Expand Up @@ -267,7 +267,7 @@ class Crystal::Doc::Generator
def isolate_flag_lines(string)
flag_regexp = /^ ?(#{FLAGS.join('|')}):?/
String.build do |io|
string.each_line.join("", io) do |line, io|
string.each_line(chomp: false).join("", io) do |line, io|
if line =~ flag_regexp
io << '\n' << line
else
Expand Down

0 comments on commit ceaeb77

Please sign in to comment.