Changeset 11057 in josm for trunk/src


Ignore:
Timestamp:
2016-09-27T09:25:46+02:00 (3 years ago)
Author:
simon04
Message:

Template engine: fix string representations

Location:
trunk/src/org/openstreetmap/josm/tools/template_engine
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/template_engine/Condition.java

    r9079 r11057  
    4141    public String toString() {
    4242        StringBuilder sb = new StringBuilder();
    43         sb.append("?{");
     43        sb.append("?{ ");
    4444        for (TemplateEntry entry: entries) {
    4545            if (entry instanceof SearchExpressionCondition) {
     
    4848                sb.append('\'').append(entry).append('\'');
    4949            }
    50             sb.append('|');
     50            sb.append(" | ");
    5151        }
     52        sb.setLength(sb.length() - 3);
     53        sb.append(" }");
    5254        return sb.toString();
    5355    }
  • trunk/src/org/openstreetmap/josm/tools/template_engine/Variable.java

    r8846 r11057  
    5656    @Override
    5757    public String toString() {
    58         return '{' + variableName + '}';
     58        return '{' + (special ? SPECIAL_VARIABLE_PREFIX : "") + variableName + '}';
    5959    }
    6060
Note: See TracChangeset for help on using the changeset viewer.