qgis/QGIS-Web-Client — pull request #59 by elpaso (2013-12-30 10:46:36+00:00)
Title: Added tooltip HTML template parsing capabilities

Main change is the addition of an "else if" in showFeatureInfo in line 139:

```javascript
} else if (tooltipAttributeName.contains('[%')){ // Look into displayField for template tags...
var tooltipText = tooltipAttributeName;
var re = new RegExp(/\[%[^"]*"(.*?)"[^"]*%\]/g);
var ttmatch;
while(ttmatch = re.exec(tooltipAttributeName)){
var key = ttmatch[1];
var val = attributesDict.hasOwnProperty(key)?attributesDict[key]:"";
tooltipText = tooltipText.replace(ttmatch[0], val);
}
text += tooltipText+"
";
}

```

This was necessary to support HTML tooltips.

Also fixed a typo in italian translation.

Other minor changes are editor's automatic strip of trailing spaces.