MXS-2712: Fix field description generation

Longer descriptions broke the formatting. The output is now also formatted
as a Markdown table which makes it work in the generated documentation.
This commit is contained in:
Markus Mäkelä
2019-10-11 11:08:49 +03:00
committed by Johan Wikman
parent 446a3fac15
commit d0114d9d48
2 changed files with 25 additions and 7 deletions

View File

@ -415,8 +415,8 @@ module.exports = function() {
this.fieldDescriptions = function(fields) {
var t = new Table({chars: {
'top' : '', 'top-mid': '', 'top-left': '', 'top-right': '', 'left': ' ', 'right': '',
'left-mid': '' , 'mid': '' , 'mid-mid': '', 'right-mid': '' , 'middle': '',
'top' : ' ', 'top-mid': '', 'top-left': '', 'top-right': '', 'left': ' ', 'right': '',
'left-mid': '' , 'mid': '' , 'mid-mid': '', 'right-mid': '' , 'middle': '|',
'bottom' : '', 'bottom-mid': '', 'bottom-left': '', 'bottom-right': '',
}})