Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-9961

TTree::Print("toponly") inserts extra newline between listed items

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: 6.17/01
    • Fix Version/s: None
    • Component/s: TTree
    • Labels:
    • Environment:

      linux, issue is independent of operating system.

    • Development:

      Description

      TTree::Print("toponly") inserts extra newline between listed items.

      Cause is the use of custom defined variant of Printf() in TString.h. In this variant of std printf, newline character is automatically added at the end of the formatted text.

      This has not been reflected in definition of TTree::Print(), see TTree.cxx Line 7035 (https://root.cern.ch/doc/master/TTree_8cxx_source.html#l07035), where additional newline character was left in the string to be printed.

      Suggested fix: remove '\n' from the format string on line 7035 in TTree.cxx

       

        Attachments

          Activity

            People

            Assignee:
            pcanal Philippe Canal
            Reporter:
            vpec Viktor Pec
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: