Hello,
we converted various cvs projects to git repositories. Due to "issues" during the conversion
some fields contained empty strings or newline chars. This breaks the generated javascript
code in the activity page.
Example Source Code:
...
data_39b7080b.setValue(4, 1, 9.0);
data_39b7080b.setValue(5, 0, '
');
data_39b7080b.setValue(5, 1, 6.0);
...
The problematic code parts are located in GooglePieChart.java and GoogleLineChart.java
in the method "appendChart":
...
this.line(sb, MessageFormat.format("{0}.setValue({1,number,0}, 0, ''{2}'');", dName,
i, value.name));
...
"value.name" must not contain any newline chars !
I am not sure if this can also break other things, we only recognized issues on the
activity page by now.
Best Regards
Daniel
Originally reported on Google Code with ID 176
Reported by
weird.addresson 2012-12-07 11:24:37