View Issue Details

IDProjectCategoryView StatusLast Update
0000819LDMud 3.6Generalpublic2021-04-06 21:28
ReporterLeonidas Assigned ToGnomi  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Fixed in Version3.6.4 
Summary0000819: column-mode of sprintf does drop rows
DescriptionUsing the column-mode of sprintf the last row will be dropped if it's row is otherwise empty.

xeval printf("%#-30.3s", "AAA\na1\na2\n\nBBB\nb1\nb2\n\nCCC\n\n\nc3\n")

gives a table with dropped third row (element c3):

AAA BBB CCC
a1 b1
a2 b2

instead of the full table

AAA BBB CCC
a1 b1
a2 b2
                    c3
Additional InformationThe third row can be forced to be displayed by setting all other elements in the third row (whitespace suffices):
xeval printf("%#-30.3s", "a\na1\na2\n \nb\nb1\nb2\n \nCCC\n\n\nc3\n")

Setting only one element in the row leads to dropping of the last element (n,m):
xeval printf("%#-30.3s", "AAA\na1\na2\n \nBBB\nb1\nb2\n\nCCC\n\n\nc3\n")

AAA BBB CCC
a1 b1
a2 b2
a3
Tagssprintf

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2013-07-12 13:08 Leonidas New Issue
2013-08-18 17:07 zesstra Tag Attached: sprintf
2020-11-12 15:22 Gnomi Assigned To => Gnomi
2020-11-12 15:22 Gnomi Status new => assigned
2021-04-06 21:28 Gnomi Project LDMud 3.5 => LDMud 3.6
2021-04-06 21:28 Gnomi Category Efuns => General
2021-04-06 21:28 Gnomi Status assigned => resolved
2021-04-06 21:28 Gnomi Resolution open => fixed
2021-04-06 21:28 Gnomi Fixed in Version => 3.6.4