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:
twanvl
2007-07-04 14:50:44 +00:00
parent af008b4852
commit b91dd379cf
2 changed files with 15 additions and 7 deletions
+2 -3
View File
@@ -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);