diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2019-01-29 16:56:31 -0500 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2019-05-17 16:59:38 -0400 |
commit | 6366f823e969f7547af6ae1063ced4b7c4fcd5a5 (patch) | |
tree | 308e0d6af83e5dc3c7d5259e4b132b04d398c83b /org/default_regex.org | |
parent | format delimiter s/¶/┋/g (diff) |
white space rgx to keep in block
- code, block, verse
Diffstat (limited to 'org/default_regex.org')
-rw-r--r-- | org/default_regex.org | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/org/default_regex.org b/org/default_regex.org index e02c3a3..80e3cde 100644 --- a/org/default_regex.org +++ b/org/default_regex.org @@ -422,6 +422,7 @@ static xhtml_line_break = ctRegex!(` [\\]{2}`); // <br static newline = ctRegex!("\n", "mg"); static strip_br = ctRegex!("^<br>\n|<br>\n*$"); static space = ctRegex!(`[ ]`, "mg"); +static spaces_keep = ctRegex!(`(?P<keep_spaces>^[ ]+|[ ]{2,})`, "mg"); // code, verse, block static spaces_line_start = ctRegex!(`^(?P<opening_spaces>[ ]+)`, "mg"); static spaces_multiple = ctRegex!(`(?P<multiple_spaces>[ ]{2,})`, "mg"); static two_spaces = ctRegex!(`[ ]{2}`, "mg"); |