diff options
| author | 2025-03-21 17:14:58 +0000 | |
|---|---|---|
| committer | 2025-03-21 17:14:58 +0000 | |
| commit | 83c8218f71a7d901609f10df6612bf457c30f35a (patch) | |
| tree | a08b014ced2dd68b20e498195d4c2c6064225dab /format.c | |
| parent | Merge pull request 'refresh master' (#3) from grunfink/snac2:master into master (diff) | |
| parent | Merge pull request 'added missing czech translations' (#332) from pmjv/snac2:... (diff) | |
| download | snac2-83c8218f71a7d901609f10df6612bf457c30f35a.tar.gz snac2-83c8218f71a7d901609f10df6612bf457c30f35a.tar.xz snac2-83c8218f71a7d901609f10df6612bf457c30f35a.zip | |
Merge pull request 'v2.74' (#4) from grunfink/snac2:master into master
Reviewed-on: https://codeberg.org/zen/snac2/pulls/4
Diffstat (limited to 'format.c')
| -rw-r--r-- | format.c | 7 |
1 files changed, 0 insertions, 7 deletions
| @@ -94,7 +94,6 @@ static xs_str *format_line(const char *line, xs_list **attach) | |||
| 94 | "`[^`]+`" "|" | 94 | "`[^`]+`" "|" |
| 95 | "~~[^~]+~~" "|" | 95 | "~~[^~]+~~" "|" |
| 96 | "\\*\\*?\\*?[^\\*]+\\*?\\*?\\*" "|" | 96 | "\\*\\*?\\*?[^\\*]+\\*?\\*?\\*" "|" |
| 97 | "_[^_]+_" "|" //anzu | ||
| 98 | "__[^_]+__" "|" //anzu | 97 | "__[^_]+__" "|" //anzu |
| 99 | "!\\[[^]]+\\]\\([^\\)]+\\)" "|" | 98 | "!\\[[^]]+\\]\\([^\\)]+\\)" "|" |
| 100 | "\\[[^]]+\\]\\([^\\)]+\\)" "|" | 99 | "\\[[^]]+\\]\\([^\\)]+\\)" "|" |
| @@ -138,12 +137,6 @@ static xs_str *format_line(const char *line, xs_list **attach) | |||
| 138 | xs *s2 = xs_fmt("<u>%s</u>", s1); | 137 | xs *s2 = xs_fmt("<u>%s</u>", s1); |
| 139 | s = xs_str_cat(s, s2); | 138 | s = xs_str_cat(s, s2); |
| 140 | } | 139 | } |
| 141 | else | ||
| 142 | if (xs_startswith(v, "_")) { | ||
| 143 | xs *s1 = xs_strip_chars_i(xs_dup(v), "_"); | ||
| 144 | xs *s2 = xs_fmt("<i>%s</i>", s1); | ||
| 145 | s = xs_str_cat(s, s2); | ||
| 146 | } | ||
| 147 | //anzu - end | 140 | //anzu - end |
| 148 | else | 141 | else |
| 149 | if (xs_startswith(v, "~~")) { | 142 | if (xs_startswith(v, "~~")) { |