tools-python icon indicating copy to clipboard operation
tools-python copied to clipboard

spdx3: element_writer: switch from tab characters to two spaces

Open stanislaw opened this issue 1 year ago • 4 comments

Hello everyone,

This is my first issue to this repository. I am new to SPDX and apologize for possible misunderstanding of the intentions behind the code I am modifying.

I am integrating the SPDX 3.0 export to the StrictDoc tool, see https://github.com/strictdoc-project/strictdoc/issues/1541.

The starting point for this issue is the fact that the Creation Information block is suddenly nested with a tab character when I try to populate an spdx3.*.SpdxDocument and write to a string buffer. My IDE is set up to ignore tab characters, so the output is displayed as if the indentation level was 1 character wide.

Bildschirmfoto 2024-01-09 um 21 07 31

In this MR, the creation info is unindented, and a test is added to demonstrate the behavior I would expect to see.

stanislaw avatar Jan 09 '24 20:01 stanislaw