Renders carriage return \r and line feed into documents instead of printing them as a string.
supported file formats: DOCX, PDF, ODT, ODS
ODS support is experimental
use the :convCRLF formatter before :html to convert to <br> tags
example: {d.content:convCRLF:html}
Examples
// with options = {// "extension": "odt"// }'my blue \n car':convCRLF() // "my blue <text:line-break/> car"'my blue \r\n car':convCRLF() // "my blue <text:line-break/> car"// with options = {// "extension": "docx"// }'my blue \n car':convCRLF() // "my blue </w:t><w:br/><w:t> car"'my blue \r\n car':convCRLF() // "my blue </w:t><w:br/><w:t> car"
enum name passed in options of carbone.render(data, options)
string
begin
Zero-based index at which to begin extraction.
integer
end
Zero-based index before which to end extraction
integer
targetLength
The length of the resulting string once the string has been padded. If the value is less than string length, then string is returned as-is.
number
padString
The string to pad the current str with. If padString is too long to stay within the targetLength, it will be truncated from the end. The default value is " "
string
targetLength
The length of the resulting string once the string has been padded. If the value is less than string length, then string is returned as-is.
number
padString
The string to pad the current str with. If padString is too long to stay within the targetLength, it will be truncated from the end. The default value is " "