mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
Fixed curly quotes after parenthesis: ("
Font size is now independent of screen DPI, at least on windows git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@478 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -101,14 +101,13 @@ SCRIPT_FUNCTION(curly_quotes) {
|
||||
c = open ? LEFT_SINGLE_QUOTE : RIGHT_SINGLE_QUOTE;
|
||||
} else if (c == _('\"') || c == LEFT_DOUBLE_QUOTE || c == RIGHT_DOUBLE_QUOTE) {
|
||||
c = open ? LEFT_DOUBLE_QUOTE : RIGHT_DOUBLE_QUOTE;
|
||||
}
|
||||
if (c == _('<')) {
|
||||
} else if (c == _('<')) {
|
||||
in_tag = true;
|
||||
} else if (c == _('>')) {
|
||||
in_tag = false;
|
||||
} else if (!in_tag) {
|
||||
// Also allow double-nesting of quotes
|
||||
open = isSpace(c) || c == LEFT_DOUBLE_QUOTE || c == LEFT_SINGLE_QUOTE;
|
||||
open = isSpace(c) || c == _('(') || c == _('[');
|
||||
}
|
||||
}
|
||||
SCRIPT_RETURN(input);
|
||||
|
||||
Reference in New Issue
Block a user