Skip to content
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

inifile raise an error while parsing a value containing the "=" #26

Closed
fabiomux opened this issue Jul 26, 2014 · 0 comments · Fixed by #27
Closed

inifile raise an error while parsing a value containing the "=" #26

fabiomux opened this issue Jul 26, 2014 · 0 comments · Fixed by #27

Comments

@fabiomux
Copy link

As stated in the title here is the error:

/usr/lib/ruby/gems/1.9.1/gems/inifile-2.0.2/lib/inifile.rb:523:in `parse_error': Could not parse line: "Exec=/usr/lib/chromium/chromium --profile-directory=Default --app-id=ihmgiclibbndffejedjimfjmfoabpcke" (IniFile::Error)

Everything works fine except for this row which can't be parsed, i tried to find where there error is generated and seems that applying the comments as below in the parse! method it works:

...
     # look for the separator between property name and value
      elsif scanner.scan(%r/#{@param}/)

#         if property.empty?
          property = string.strip
          string.slice!(0, string.length)
#         else
#     p property
#           parse_error
#         end

      # look for the start of a new section
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant