Whitespace after section header messes up with section namings #417
Labels
area/fedora
Related to Fedora ecosystem
complexity/single-task
Regular task, should be done within days.
gain/low
This doesn't bring that much value to users.
impact/low
This issue impacts only a few users.
kind/bug
Something isn't working.
What happened? What is the problem?
Hello, I was wondering why there isn't a build or install section found in flowblade.spec.
When I parse the spec, I get:
I examined the specfile, and I found it has:
Indeed,
sections.get("build ")
works.I did not expect this to obfuscate the result of
"build" in sections
orsections.build
. This means the only reliable way to get the build section is to iterate all the sections and look at the name.What did you expect to happen?
I expected the insignificant trailing whitespace to be ignored.
Example URL(s)
https://src.fedoraproject.org/rpms/flowblade/blob/50cab22e213a45b84a6f839057b436f6430e422f/f/flowblade.spec
Steps to reproduce
Workaround
Participation
The text was updated successfully, but these errors were encountered: