小编mas*_*huu的帖子

如何在Google Apps jsdoc说明中强制换行

我无法弄清楚Google Apps脚本中如何正确显示这一点.我需要它在jsdoc输出中显示新行(例如,当函数工具提示窗口出现在Spreadheet函数中时.)我尝试过html,
但它只是呈现为文本而不是换行符.

例如:

/**
 * Converts the prefixed value to the specified base.
 * Requires one of the following prefixes: 
 *    '0b' Base 2:   binary 
 *    '0q' Base 4:   quaternary 
 *    '0o' Base 8:   octal
 *    '0x' Base 16:  hexadecimal
 *
 * @param {string} Value The prefixed value to convert.
 * @param {number} To The base to convert to.
 * @return The converted base.
 * @customfunction
 */
function BASEP(Value, To) {
Run Code Online (Sandbox Code Playgroud)

这只是呈现一个文本blob:

Summary:
  Converts the prefixed value to the …
Run Code Online (Sandbox Code Playgroud)

google-docs google-sheets jsdoc google-apps-script

10
推荐指数
5
解决办法
7675
查看次数