You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by "Daniel Dekany (JIRA)" <ji...@apache.org> on 2016/04/09 23:07:25 UTC

[jira] [Created] (FREEMARKER-19) 2.3.24 calculates column number with tab size 1 instead of 8

Daniel Dekany created FREEMARKER-19:
---------------------------------------

             Summary: 2.3.24 calculates column number with tab size 1 instead of 8
                 Key: FREEMARKER-19
                 URL: https://issues.apache.org/jira/browse/FREEMARKER-19
             Project: Apache Freemarker
          Issue Type: Bug
            Reporter: Daniel Dekany
            Assignee: Daniel Dekany


This change has slipped in with the JavaCC update in 2.3.24 (JavaCC has changed the default tab size from 8 to 1). It affects the column numbers shown in error messages, not the template output. While tab size 1 is better than 8 for most use cases (such as for placing error markers in IDE-s), it was 8 so far, so this change is not backward compatible, and the default has to be changed back to 8. On the same time, we should add a {{tab_size}} configuration setting. After all, we don't know what the tab size is in an application. Also that allows setting it to 1 (that's often practical).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)