Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1011928 // ai_renderNodeHTML_shorten

JavaX fragment (include)

static S ai_renderNodeHTML_shorten(int max, WebNode n) {
  ret ai_renderNodeHTML_shorten(max, n, "-");
}

static S ai_renderNodeHTML_shorten(int max, WebNode n, S defaultText) {
  if (n == null || !web_hasLabels(n)) ret defaultText;
  ret joinWithComma(map html_encyclopediaTopic(shortenAll(max, web_texts(n))));
}

Author comment

Began life as a copy of #1011441

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1011928
Snippet name: ai_renderNodeHTML_shorten
Eternal ID of this version: #1011928/4
Text MD5: 2bf5bc9450cac7a0a42b7fa0cb8a223f
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-10 04:08:24
Source code size: 321 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 376 / 401
Version history: 3 change(s)
Referenced in: [show references]