Don't wrap before dot (PY-5464).

This commit is contained in:
Dmitry Trofimov
2014-02-04 14:26:29 +04:00
parent 3529094fd2
commit f0ffa4f56c
4 changed files with 3 additions and 6 deletions
@@ -45,9 +45,6 @@ public class PyLineWrapPositionStrategy extends GenericLineWrapPositionStrategy
addRule(new Rule('(', WrapCondition.AFTER));
addRule(new Rule('[', WrapCondition.AFTER));
addRule(new Rule('{', WrapCondition.AFTER));
// Symbols to wrap before
addRule(new Rule('.', WrapCondition.BEFORE));
}
@Override
@@ -1,2 +1,2 @@
call_command('.'
call_command(' '
'regressiontests_some_long_text_here_to_test_right_margin_some_long_text_here_to_test_right_margin_some_long_text_here_to_test_right_margin')
@@ -1 +1 @@
call_command('.regressiontests<caret>')
call_command(' regressiontests<caret>')
@@ -1,4 +1,4 @@
def do_stuff():
another_long_variable = a_really_long_function_name_with_parameters(12,
this_is_the_first_param=23,
this_is_the_second=45).do_more_stuff_to_the_result()
this_is_the_second=45).do_more_stuff_to_the_result()