Menu

#2 Column layout does not match the result lines

V0.5_unix-like
closed
nobody
5
2019-01-12
2011-07-24
katerkarlo
No

If the result line is growing, the column-line is not growing at all. This can be confusing for the user.

Testdescription:
Create large result lines e.g with the input:
1, 1, 10, 1, 1, 1, 1, 1, 1, 1, 1

Discussion

  • katerkarlo

    katerkarlo - 2011-07-24
     
  • sargas

    sargas - 2011-07-25

    Column width values are fixed and have been chosen for every column according with sane probable values. The goal was to fit everything in a console with a length of 80 characters. This leads in extreme cases, as the one shown, to misalignments.
    Making the column width variable depending on the output requires a lot of work and might not be implemented very soon.

     
  • sargas

    sargas - 2011-07-25
    • status: open --> open-postponed
     
  • sargas

    sargas - 2011-07-25

    I am looking into this, and see if I can find a solution. Because of pfcalc internal workings there is currently no way for me to know in advance the length of the output data.

     
  • sargas

    sargas - 2011-07-25

    Proposed quick fix: make sure that no output line exceeds 80 characters in length by using scientific notation (e.g. 1.2E+06 instead of 1200000). This might lead to some precision loss, but this is not an issue since all accurate and complete data can be dumped to a file using the -o parameter.

     
  • sargas

    sargas - 2011-08-01
    • status: open-postponed --> open-fixed
     
  • sargas

    sargas - 2011-08-08
    • status: open-fixed --> pending-fixed
     
  • sargas

    sargas - 2019-01-12
    • status: pending-fixed --> closed
     

Log in to post a comment.