Patch from bmc to make options more readable
git-svn-id: file:///home/svn/incoming/trunk@3368 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
c81e6a799d
commit
859cf8bb0d
|
@ -330,10 +330,12 @@ class ReadableText
|
|||
next if (!opt.advanced?)
|
||||
|
||||
val = mod.datastore[name] || opt.default || ''
|
||||
desc = word_wrap(opt.desc, indent.length + 3)
|
||||
desc = desc.slice(indent.length + 3, desc.length)
|
||||
|
||||
output += pad + "Name : #{name}\n"
|
||||
output += pad + "Default: #{val}\n\n"
|
||||
output += word_wrap(opt.desc, indent.length + 3)
|
||||
output += pad + "Default : #{val}\n"
|
||||
output += pad + "Description: #{desc}\n"
|
||||
}
|
||||
|
||||
return output
|
||||
|
@ -353,9 +355,12 @@ class ReadableText
|
|||
|
||||
val = mod.datastore[name] || opt.default || ''
|
||||
|
||||
desc = word_wrap(opt.desc, indent.length + 3)
|
||||
desc = desc.slice(indent.length + 3, desc.length)
|
||||
|
||||
output += pad + "Name : #{name}\n"
|
||||
output += pad + "Default: #{val}\n\n"
|
||||
output += word_wrap(opt.desc, indent.length + 3)
|
||||
output += pad + "Default : #{val}\n"
|
||||
output += pad + "Description: #{desc}\n"
|
||||
}
|
||||
|
||||
return output
|
||||
|
|
Loading…
Reference in New Issue