Question: MyBatis build SQL include many blank lines from XML. The blank lines is unnecessary.

https://issues.apache.org/jira/browse/IBATIS-143

class XMLScriptBuilder Let XNode replace '\n' or "\r\n" to ' ' . I want the feature can be configurable.

Comment From: kazuki43zoo

Hi @zhaoxi1988 , contributing welcome!! :D

Comment From: zhaoxi2000

Oh. I accept it.

By the way. Why do not mybatis's package name 'org.apache.mybatis' ?

Comment From: George5814

@zhaoxi1988 Is the problem solved?

Comment From: zhaoxi2000

@George5814 Still not solved...I busy on mybatis UnitTest...

Comment From: zhaoxi2000

@George5814 My idea: 1.add in org.apache.ibatis.session.Configuration 2.push configuration down , let SqlSourceBuilder trim '\r|\n' or replace('\r|\n', ' ')

单元测试在IntelliJ上, 只安装JDK8有点尴尬...

Comment From: harawata

I'm wondering why this feature request gets many votes. Is there any actual harm caused by the extra blank lines?

Comment From: George5814

This is to delete the extra whitespace produced by the dynamic tags, not to beautify the SQL. Improve readability.

Comment From: harawata

@George5814 Recent versions of MyBatis remove blank lines when printing the log, so where do you see the SQLs with blank lines?

Comment From: zhaoxi2000

@harawata Because the Database Server logging SQL is not convenient. Then the next requirement is that tracing SQL instance in MyBatis , e.g.