Cucumber chomp the last \n from multiline strings (docstrings), this monkey patch modify Cucumber::Ast::DocString constructor to add the missing ending new line character and Cucumber::Formatter::Pretty#doc_string to remove it from the output.