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

7
LINES

< > BotCompany Repo | #1030734 // renderForTable_noStruct - use str() for random objects so dataToTable doesn't struct() them

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (9470L/54K).

sO renderForTable_noStruct(O o) {
  try object toBufferedImageOpt(o);
  if (o instanceof S && containsNewLine((S) o))
    ret escapeNewLines(dropTrailingNewLine((S) o));
  if (o cast Cl) ret joinWithComma(o);
  ret strOrNull(o);
}

Author comment

Began life as a copy of #1006010

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030734
Snippet name: renderForTable_noStruct - use str() for random objects so dataToTable doesn't struct() them
Eternal ID of this version: #1030734/4
Text MD5: b48b10806cf540410af14f3c3ba64214
Transpilation MD5: 79f27192e6466450081c05202bfaea59
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-05-14 02:12:28
Source code size: 236 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 220 / 327
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)