jj/cli
Vamsi Avula fb93394610 templates: add raw_escape_sequence
Templates can be formatted (using labels) and are usually sanitized
(unless for plain text output).
`raw_escape_sequence(content)` bypasses both.

```toml
	'hyperlink(url, text)' = '''
		raw_escape_sequence("\e]8;;" ++ url ++ "\e\\") ++
		text ++
		raw_escape_sequence("\e]8;;\e\\")
	'''
```

In this example, `raw_escape_sequence` not only outputs the intended
escape codes, it also strips away any escape codes that might otherwise
be part of the `url` (from any labels attached to the `url` content).

Not all formatters (namely FormatRecorder) are supported yet.

Change-Id: Id00000004492dbf39e50f3b7090706839d1d8d45
2024-10-13 12:02:40 +05:30
..
examples templater: pass diagnostics receiver around 2024-09-23 07:07:07 +09:00
src templates: add raw_escape_sequence 2024-10-13 12:02:40 +05:30
testing style: inline variables into format strings 2024-10-04 22:29:13 +02:00
tests squash: add -f/-t shorthands for --from/--[in]to 2024-10-13 08:04:57 +05:30
build.rs style: inline variables into format strings 2024-10-04 22:29:13 +02:00
Cargo.toml cargo: inherit lints configuration from workspace 2024-10-04 22:29:13 +02:00
LICENSE