1 | sS indentx(O s) {
|
2 | ret indentx(strOrEmpty(s)); |
3 | } |
4 | |
5 | static S indentx(S s) {
|
6 | return indentx(indent_default, s); |
7 | } |
8 | |
9 | static S indentx(int n, S s) {
|
10 | return dropSuffix(repeat(' ', n), indent(n, s));
|
11 | } |
12 | |
13 | static S indentx(S indent, S s) {
|
14 | return dropSuffix(indent, indent(indent, s)); |
15 | } |
Began life as a copy of #1000672
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney
No comments. add comment
| Snippet ID: | #1003144 |
| Snippet name: | indentx function - handles trailing \n better |
| Eternal ID of this version: | #1003144/2 |
| Text MD5: | 84ca3974c615fdca898bffe5e3f508c9 |
| Author: | stefan |
| Category: | |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-04-05 20:10:00 |
| Source code size: | 297 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 1460 / 1872 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |