Version tag doesn't increment bugfix portion of the version
|Reported by:||dotsid@…||Owned by:||mrook|
Almost all unix editors adds a newline to the end of text files. This is unix convention on text files. This newlines cause problems with <version /> tag.
When tag handler reads data it explode it by dot as a delimiter, and bugfix portion of the version contains \n symbol.
There are several ways to do about the problem:
- use trim() when reading content from version file;
- use $bugfix + 1 (not $bugfix++) expression for incrementing version. It seems that $v + 1 expression cast $v to integer and newline disappear before incrementing variable.
I think it also would be nice if version file will have \n at the end.