-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spdx3: element_writer: switch from tab characters to two spaces #785
Conversation
cc2943d
to
a61bb33
Compare
a61bb33
to
8452aef
Compare
I think that the indentation was intentional. As sub-structures within an object are also come with indentation in other places. Maybe we could indent with spaces instead of |
This makes sense. Definitely it would make sense to replace An extra thought regarding the indentation of creation info: in YAML things are indented when there is a key that bundles together indented content. On the screenshot above, the role of a "key" is played by a comment In YAML this would look like: creation_info:
spec_version: ...
... I am ready to both engage or disengage, so how could we proceed? Is it worth to use this MR for replacing |
we would appreciate if you would make the changes to spaces. But you could also just put it into a new issue, if you want. |
Signed-off-by: Stanislav Pankevich <[email protected]>
8452aef
to
221483c
Compare
Please check the change I've made. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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 strictdoc-project/strictdoc#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 anspdx3.*.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.In this MR, the creation info is unindented, and a test is added to demonstrate the behavior I would expect to see.