1 | static S ai_renderNodeHTML_shorten(int max, WebNode n) { |
2 | ret ai_renderNodeHTML_shorten(max, n, "-"); |
3 | } |
4 | |
5 | static S ai_renderNodeHTML_shorten(int max, WebNode n, S defaultText) { |
6 | if (n == null || !web_hasLabels(n)) ret defaultText; |
7 | ret joinWithComma(map html_encyclopediaTopic(shortenAll(max, web_texts(n)))); |
8 | } |
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: | 477 / 510 |
Version history: | 3 change(s) |
Referenced in: | [show references] |