Incorrect line number in error report

People, As I was experimenting with the style files, I introduced an error in one of the rules. Then mkgmap naturally reported an error at, say "line 60:20", but the error line was actually several lines further down, say line number 73. I think mkgmap is skipping lines with comments #..... or blank lines. I think comment or blank lines should be computed for line numbering matter, which helps a lot in locating them in text editors. To reproduce the issue, just corrupt some rule (I experienced it in inc/address file), taking note of its line number, and compile. thanks, Paulo

Hi
As I was experimenting with the style files, I introduced an error in one of the rules. Then mkgmap naturally reported an error at, say "line 60:20", but the error line was actually several lines further down, say line number 73.
This was reported a few days ago and I created a fix, but I can't see that I sent it out. I've attached a patch and I will commit it soon anyway. ..Steve
participants (2)
-
Paulo Carvalho
-
Steve Ratcliffe