Sublime Forum

indent_subsequent_lines behavior in Python

#1

A little problem here. Hopefully, someone will be able to help :wink:

After enabling ā€œindent_subsequent_linesā€ in the Syntax specific settings for Python, I get the following:

for name, field in form.fields.iteritems(): value = form.fields[name] if not value and form.fields[name].required: self.assertFormError(response, "form", name, [error_msg])

which, I think, is not desirable. Instead, if a set indent_subsequent_lines to false, I get:

for name, field in form.fields.iteritems(): value = form.fields[name] if not value and form.fields[name].required: self.assertFormError(response, "form", name, [error_msg])

although that depends on wrap_width (mine is set to 60).

Obviously, the intended behavior should be:

for name, field in form.fields.iteritems(): value = form.fields[name] if not value and form.fields[name].required: self.assertFormError(response, "form", name, error_msg])

Is it possible to adjust the amount of indentation for that particular setting?

Thanks in advance.

0 Likes