Skip to content

Commit ceaeb77

Browse files
author
Ary Borenszweig
committedDec 20, 2016
Fixed incorrect docs after chomp change
1 parent bf5f57b commit ceaeb77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/compiler/crystal/tools/doc/generator.cr

+1-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ class Crystal::Doc::Generator
267267
def isolate_flag_lines(string)
268268
flag_regexp = /^ ?(#{FLAGS.join('|')}):?/
269269
String.build do |io|
270-
string.each_line.join("", io) do |line, io|
270+
string.each_line(chomp: false).join("", io) do |line, io|
271271
if line =~ flag_regexp
272272
io << '\n' << line
273273
else

0 commit comments

Comments
 (0)