Skip to content

Commit

Permalink
Fixed incorrect docs after chomp change
Browse files Browse the repository at this point in the history
Ary Borenszweig committed Dec 20, 2016

Verified

This commit was signed with the committer’s verified signature. The key has expired.
nomadium Miguel Landaeta
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
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ceaeb77

Please sign in to comment.