Comments (2)
I had the same problem.
I decided to preserve the line separator as is in the given properties files
and I added:
to PropertyFileContent:
private String lineseparator = null;
public String getLineseparator() {
return lineseparator;
}
public void setLineseparator(String lineseparator) {
this.lineseparator = lineseparator;
}
and to PropertyFileContentParser:
if (fileContent.contains("\r\n")) {
propertyFileContent.setLineseparator("\r\n");
} else if (fileContent.contains("\n")) {
propertyFileContent.setLineseparator("\n");
} else if (fileContent.contains("\r")) {
propertyFileContent.setLineseparator("\r");
} else {
propertyFileContent.setLineseparator(System.getProperty("line.separator"));
}
and changed PropertyFileContentWriter Line 145 from:
bufferedWriter.write( LINE_SEPARATOR );
to:
bufferedWriter.write( propertyFileContent.getLineseparator() );
Original comment by [email protected]
on 14 Oct 2011 at 6:13
from i18n-binder.
Fixed this issue with 0.1.3 release
Can you please verify?
Original comment by [email protected]
on 14 Oct 2011 at 10:06
- Changed state: Fixed
from i18n-binder.
Related Issues (16)
- Issue when deleting a value from a locale column in the excel HOT 1
- Properties with spaces fail HOT 1
- Newlines are escaped when converting from Excel to properties
- Improvement of FacadeCreatorHelper HOT 1
- Path in first column - relative?
- Fix issue 9 in the configuration i18nBinder.properties HOT 1
- Fork of i18n-binder under the name kilt
- strings with '!' often turn up empty in xls HOT 5
- Excel number of rows greater then 65k support HOT 1
- Patch for /trunk/i18nbinder-core/src/main/java/org/omnaest/i18nbinder/internal/ModifierHelper.java HOT 1
- Patch for /trunk/i18nbinder-ant/src/main/java/org/omnaest/i18nbinder/I18nBinder.java HOT 1
- Patch for /trunk/i18nBinderAntBuildScript/build.xml HOT 1
- Patch for /trunk/i18nbinder-core/src/test/java/org/omnaest/i18nbinder/internal/ModifierHelperTest.java HOT 1
- Not able to export non-UTF-8 properties files properly HOT 6
- Unicode sequences should be unescaped in Excel HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from i18n-binder.