MapFailedException when parsing a commented line in text TYP file

Hi all, I've stumbled upon a MapFailedException when compiling a text TYP file. I use TYPViewer to create TYP files and I chose to create an empty icon to a POI. This leads to the following error : Severe (MapFailedException): /path/to/typfile.txt: (thrown in TypCompiler.makeMap()) Compiling TYP txt file: Error: (/path/to/typfile.txt:3454): Expecting ", instead saw ; Typ file extract : [_point] Type=0x00b SubType=0x00 ExtendedLabels=Y FontStyle=SmallFont CustomColor=No DayXpm="1 1 0 1" Colormode=16 ;Couleurs 24 bits : pas de palette <- line 3454 "#D4D0C8" "#D4D0C8" ;1 [end] If I delete the faulty line, mkgmap compiles the TYP file successfully. In this format, a line starting with ; is a comment. Shouldn't any comment be ignored by the parsing algorithm ? Paco

Hi Paco
In this format, a line starting with ; is a comment. Shouldn't any comment be ignored by the parsing algorithm ?
I will check again if this is possible, because it has come up before. It is deliberate that it does not recognize ';' as a comment within an XPM definition, but I am not sure without checking if it really could be allowed. I will follow up later. ..Steve
participants (2)
-
Paco Tyson
-
Steve Ratcliffe