magiconair / properties

Java properties scanner for Go
BSD 2-Clause "Simplified" License
323 stars 77 forks source link

WriteComment should ignore empty ones #3

Closed emicklei closed 9 years ago

emicklei commented 9 years ago

If no comment was set for a key,value pair then I expect the WriteComment to not write the extra lines.

#
eddy.aq.concurrent.consumers = 10

#
eddy.aq.max.concurrent.consumers = 10

vs

eddy.aq.concurrent.consumers = 10
eddy.aq.max.concurrent.consumers = 10
magiconair commented 9 years ago

I've pushed the issue_3 branch which should fix that. Pls have a look.

emicklei commented 9 years ago

thanks, will have a look tomorrow

On Wed, Apr 8, 2015 at 5:36 PM, Frank Schröder notifications@github.com wrote:

I've pushed the issue_3 branch which should fix that. Pls have a look.

— Reply to this email directly or view it on GitHub https://github.com/magiconair/properties/issues/3#issuecomment-90953241.

^ Ernest Micklei

http://ernestmicklei.com

magiconair commented 9 years ago

Fixed in v1.5.2