muon/doc/misc/configuration_data_escaping_rules.md
2022-10-25 10:54:31 -04:00

710 B

Configuration data escaping rules:

  1. You can escape the format character (@) by preceding it with a backslash.

  2. Backslashes not directly preceding a format character are not modified.

  3. The number of backslashes preceding a @ in the output is equal to the number of backslashes in the input divided by two, rounding down.

    For example, given the string "\@" (one backslash), the output will contain no backslashes. Both "\\@" and "\\\@" (two and three backslashes) will produce one backslash in the output "\@".

Examples:

"\@" -> "@"

"\\@" -> "\@"

"\\ @" -> "\\ @"