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

5
LINES

< > BotCompany Repo | #1015075 // jlabel_textAsHTML_center_ifNeeded

JavaX fragment (include)

1  
sS jlabel_textAsHTML_center_ifNeeded(S text) {
2  
  if (swic(text, "<html>") && ewic(text, "</html>")) ret text;
3  
  if (!containsNewLines(text)) ret text;
4  
  ret jlabel_textAsHTML_center(text);
5  
}

Author comment

Began life as a copy of #1014101

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: #1015075
Snippet name: jlabel_textAsHTML_center_ifNeeded
Eternal ID of this version: #1015075/1
Text MD5: 268c821e201b0d22a6e1410f4598656c
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-07 21:10:31
Source code size: 194 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 420 / 465
Referenced in: [show references]