Spliced Lines format
Spliced-lines plain text is a line-oriented text format in which a
trailing backslash (\) at the end of a physical line continues the
logical line onto the next one. The reader joins adjacent physical
lines wherever the previous line ends in \, and emits one
translatable block per logical line. The splice marker is consumed;
the line break between spliced lines is kept inside the block text.
Use it for line-continuation conventions common in configuration and scripting files, where a long value is wrapped across several physical lines with a backslash. Lines without a trailing backslash stand on their own as one block each.
This format has no configurable parameters.
Examples
Extract continuation-joined lines
No configuration is required. Declare the format to join backslash-continued lines into single blocks.
format: name: splicedlines
Processing notes
One block per logical line; spliced physical lines are joined with their original line breaks preserved in the block text.
A document that ends mid-continuation (a final line still ending in
\) round-trips the trailing backslash, matching Okapi'sSplicedLinesFilterbehaviour.With a skeleton store active, line endings and continuation markers are tracked so output is byte-exact.
Limitations
The splice marker is fixed to the backslash character; it is not configurable.
Blank or whitespace-only logical lines are treated as non-translatable structure (skeleton), not extracted.
← Back to the Format Reference