vermaseren / form

The FORM project for symbolic manipulation of very big expressions
GNU General Public License v3.0
982 stars 118 forks source link

Annoying linebreaks in shortstat when the module has a name #399

Closed tueda closed 1 year ago

tueda commented 2 years ago
#-
On shortstats;
#do i =1,10
  L F`i' = 1;
#enddo
.end:abcde;
FORM 4.2.1 (Nov 10 2020, v4.2.1-30-gb0e72a8) 64-bits  Run: Mon Nov 15 12:14:09 2021
    #-
      0.00s        1>         1-->         1:        20 F1                    a
bcde
      0.00s        1>         1-->         1:        20 F2                    a
bcde
      0.00s        1>         1-->         1:        20 F3                    a
bcde
      0.00s        1>         1-->         1:        20 F4                    a
bcde
      0.00s        1>         1-->         1:        20 F5                    a
bcde
      0.00s        1>         1-->         1:        20 F6                    a
bcde
      0.00s        1>         1-->         1:        20 F7                    a
bcde
      0.00s        1>         1-->         1:        20 F8                    a
bcde
      0.00s        1>         1-->         1:        20 F9                    a
bcde
      0.00s        1>         1-->         1:        20 F10
abcde
  0.00 sec out of 0.00 sec

We may improve this a bit such that the statistics for each expression fit on one line, though the expression name and/or module name should be truncated when they are long.

vermaseren commented 2 years ago

This can be solved by setting Format to a larger number.

On 15 Nov 2021, at 04:26, Takahiro Ueda @.***> wrote:

-

On shortstats;

do i =1,10

L F`i' = 1;

enddo

.end:abcde; FORM 4.2.1 (Nov 10 2020, v4.2.1-30-gb0e72a8) 64-bits Run: Mon Nov 15 12:14:09 2021

-

  0.00s        1>         1-->         1:        20 F1                    a

bcde 0.00s 1> 1--> 1: 20 F2 a bcde 0.00s 1> 1--> 1: 20 F3 a bcde 0.00s 1> 1--> 1: 20 F4 a bcde 0.00s 1> 1--> 1: 20 F5 a bcde 0.00s 1> 1--> 1: 20 F6 a bcde 0.00s 1> 1--> 1: 20 F7 a bcde 0.00s 1> 1--> 1: 20 F8 a bcde 0.00s 1> 1--> 1: 20 F9 a bcde 0.00s 1> 1--> 1: 20 F10 abcde 0.00 sec out of 0.00 sec We may improve this a bit such that the statistics for each expression fit on one line, though the expression name and/or module name should be truncated when they are long.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/vermaseren/form/issues/399, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJPCESWCBEUTVJJ3MJNHXTUMB4VNANCNFSM5IAVQDXA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

tueda commented 2 years ago

You are right! Format 120; does the job, actually.

(I thought I tried it, but now I see what I tried was, effectively

Format 120;
Format nospaces;

so I failed to set the output width to 120 characters...)