mspieth / rssdler

Automatically exported from code.google.com/p/rssdler
4 stars 0 forks source link

Config line stating with space chained on to prev expression. #65

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Make some changes to config.txt, by accident leave a space before 
regExFalse definition.

eg.

...
regExTrue = ubuntu
#
#Comments
# 
 regExFalse = lts
#^- This space is the problem  
...

What is the expected output? What do you see instead?

I expected both regExTrue and regExFalse to be defined. 
But only regExTrue is set and to "ubuntu\n regExFalse = lts" leading to no 
matches. 

What version of the product are you using? On what operating system?

rssdler 0.4.2, Python 2.5, OS X 10.6.7

Please provide any additional information below.

Had to add some debug prints to rssdler.py to find out why regExTrue never 
matched. 

I propose a warning message if config.txt contains lines beginning with spaces. 

Original issue reported on code.google.com by Robin.La...@gmail.com on 6 Apr 2011 at 8:28