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

8
LINES

< > BotCompany Repo | #1014431 // tempIndent - temporarily indent printing

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

Libraryless. Click here for Pure Java version (2546L/16K).

static <A> AutoCloseable tempIndent(S prefix default "  ") {
  threadIndent();
  ret new AutoCloseable {
    public void close() {
      threadUnindent();
    }
  };
}

Author comment

Began life as a copy of #1012424

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1014431
Snippet name: tempIndent - temporarily indent printing
Eternal ID of this version: #1014431/2
Text MD5: ee05aaf10d0dd131935b2b0cc5b9e152
Transpilation MD5: 6fa527afe074f986aaedb014e13b23e3
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-08-06 15:54:48
Source code size: 174 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 392 / 468
Version history: 1 change(s)
Referenced in: [show references]