mirror of
https://github.com/irssi/irssi.git
synced 2026-08-19 16:42:30 +02:00
Merge pull request #112 from ailin-nemui/italics-exception
fix rules for italics emphasis
This commit is contained in:
commit
5a4e535cd7
1 changed files with 3 additions and 1 deletions
|
|
@ -82,7 +82,9 @@ char *expand_emphasis(WI_ITEM_REC *item, const char *text)
|
||||||
continue;
|
continue;
|
||||||
if (!ishighalnum(end[-1]) || ishighalnum(end[1]) ||
|
if (!ishighalnum(end[-1]) || ishighalnum(end[1]) ||
|
||||||
end[1] == type || end[1] == '*' || end[1] == '_' ||
|
end[1] == type || end[1] == '*' || end[1] == '_' ||
|
||||||
(type == 29 && end[1] != '\0' && ishighalnum(end[2])))
|
/* special case for italics to not emphasise
|
||||||
|
common paths by skipping /.../.X */
|
||||||
|
(type == 29 && i_ispunct(end[1]) && ishighalnum(end[2])))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (IS_CHANNEL(item)) {
|
if (IS_CHANNEL(item)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue