We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2543d96 commit b326fa9Copy full SHA for b326fa9
elasticsearch-api/utils/thor/generator/docs_helper.rb
@@ -23,7 +23,7 @@ def docs(name, info)
23
info['type'] = 'String' if info['type'] == 'enum' # Rename 'enums' to 'strings'
24
info['type'] = 'Integer' if info['type'] == 'int' # Rename 'int' to 'Integer'
25
tipo = info['type'] ? info['type'].capitalize : 'String'
26
- description = info['description'] ? info['description'].strip : '[TODO]'
+ description = info['description'] ? info['description'].strip.gsub("\n", ' ') : '[TODO]'
27
options = info['options'] ? "(options: #{info['options'].join(', ').strip})" : nil
28
required = info['required'] ? '(*Required*)' : ''
29
deprecated = info['deprecated'] ? '*Deprecated*' : ''
0 commit comments