Skip to content

Jar parser chokes on empty lines #2179

@ecki

Description

@ecki

if strings.TrimSpace(line) == "" {

We have manifests which contain something like this. The line is leading with a blank, so it is not an empty line which should trigger the section change. I guess removing the Trim would fix this problem ($ denotes line end):

Key-keykeykey: initialconfig:com/seeburger/aqmtestclient/aqmtestclient$
 ,$
  line1,$
  line2,$
        $    # aka not empty line
  line3,$

That value (especially line break semantics) is not so important for the analysis, but the warnings are annoying.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood-first-issueGood for newcomers

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions