Skip to content

Commit b326fa9

Browse files
committed
[API] Generator: Update description for docs parameter
1 parent 2543d96 commit b326fa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elasticsearch-api/utils/thor/generator/docs_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def docs(name, info)
2323
info['type'] = 'String' if info['type'] == 'enum' # Rename 'enums' to 'strings'
2424
info['type'] = 'Integer' if info['type'] == 'int' # Rename 'int' to 'Integer'
2525
tipo = info['type'] ? info['type'].capitalize : 'String'
26-
description = info['description'] ? info['description'].strip : '[TODO]'
26+
description = info['description'] ? info['description'].strip.gsub("\n", ' ') : '[TODO]'
2727
options = info['options'] ? "(options: #{info['options'].join(', ').strip})" : nil
2828
required = info['required'] ? '(*Required*)' : ''
2929
deprecated = info['deprecated'] ? '*Deprecated*' : ''

0 commit comments

Comments
 (0)