Class LineEndingConverter
java.lang.Object
io.wcm.devops.conga.generator.util.LineEndingConverter
Utility methods for handling line endings in files.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringconvertTo(String normalizedValue, LineEndings lineEndings) Converts all unix line endings to the given line ending style.static StringnormalizeToUnix(String value) Normalizes all line endings that may be Windows or MacOS-style and converts them to Unix-style line endings.
-
Method Details
-
normalizeToUnix
Normalizes all line endings that may be Windows or MacOS-style and converts them to Unix-style line endings.- Parameters:
value- String containing any line endings.- Returns:
- String containing only unix line endings.
-