View Issue Details

IDProjectCategoryView StatusLast Update
0000820LDMud 3.5Efunspublic2021-04-16 19:42
ReporterLeonidas Assigned To 
PrioritylowSeverityfeatureReproducibilityalways
Status closedResolutionwon't fix 
Summary0000820: Could there be a mode for dynamic column-sizes for column-mode of sprintf?
DescriptionSelf-adjusting column-sizes within the limits of the given width would be a very nice feature. At the moment the column mode only splits the given width into equal columns:
xeval printf("%#-12.3s", "AAAAAA\na1\na2\na3\nB\nb1\nb2\nb3\nC\n\n\nc3\n")

thus gives:
AAAAAAB C
a1 b1
a2 b2
a3 b3 c3

where element (1,1) squeezes into the second row.
Tagssprintf

Activities

zesstra

2013-07-14 22:12

administrator   ~0002188

Is there somebody who likes to dig in the innards of sprintf.c? ;-)

Gnomi

2021-04-16 19:42

manager   ~0002601

sprintf() in its current form cannot handle such a dynamic layout. And it is already complicated enough.
We don't feel that the effort justifies the benefits.

Issue History

Date Modified Username Field Change
2013-07-12 13:15 Leonidas New Issue
2013-07-14 22:12 zesstra Note Added: 0002188
2013-08-18 17:07 zesstra Tag Attached: sprintf
2021-04-16 19:42 Gnomi Status new => closed
2021-04-16 19:42 Gnomi Resolution open => won't fix
2021-04-16 19:42 Gnomi Note Added: 0002601