搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

How to display multi-line add-on discription for non published extension

  • 4 个回答
  • 1 人有此问题
  • 9 次查看
  • 最后回复者为 cor-el

more options

Im creating a FF extension for private distribution (I dont want it listed on the FF extension site).

If I use "\r\n" in my manifest.json "description" I can create a multi line description that displays as expected when I click on the preferences for my extension. The problem is that on the Add-on summary page (where all the installed extension are listed) the description shows the first 40 or so characters of the description (all of line 1 and then as much as will fit of line 2). I want to only show line 1.

I see that with extensions that are published the first line can be short and displays in the summary list, then when the preferences are displayed the first line is displayed and additional lines are displayed.

Any way to do this?

Im creating a FF extension for private distribution (I dont want it listed on the FF extension site). If I use "\r\n" in my manifest.json "description" I can create a multi line description that displays as expected when I click on the preferences for my extension. The problem is that on the Add-on summary page (where all the installed extension are listed) the description shows the first 40 or so characters of the description (all of line 1 and then as much as will fit of line 2). I want to only show line 1. I see that with extensions that are published the first line can be short and displays in the summary list, then when the preferences are displayed the first line is displayed and additional lines are displayed. Any way to do this?

所有回复 (4)

more options

Hello JackPollack,

Maybe you'd be better off posting your question here :

https://discourse.mozilla.org/c/add-ons

more options

will do. thank you

more options

JackPollack said

will do. thank you

          Good luck !

more options

Note that "\n" should be sufficient to force a line break.