Skip to content

hid: inline file system ignores empty lines in quoted content #5813

@jschlatow

Description

@jschlatow

While switching to HID by default, I came across the issue that stdin2out fails to read some content from an inline-specified file. Looking into this, I noticed that empty quoted lines are simply dropped. Let's have a look at an example:

+ vfs
  + inline source.txt
  | : 
  | : foo
  | : 
  | : bar
  | :

I instrumented Vfs_inline::File_system::Buffered_data::unquoted_content(). When I log() the entire node provided as argument, I get the same HID as shown above. When I use for_each_quoted_line(), however, only the lines containing foo and bar are iterated.

@nfeske Is this intentional? Is there a way to iterate the quoted content including empty lines?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions