Skip to content

Commit

Permalink
two-space indent (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan W Anderson authored Jul 6, 2020
1 parent f90f50a commit d9ff43c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/black/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1776,7 +1776,7 @@ def __str__(self) -> str:
if not self:
return "\n"

indent = " " * self.depth
indent = " " * self.depth
leaves = iter(self.leaves)
first = next(leaves)
res = f"{first.prefix}{indent}{first.value}"
Expand Down Expand Up @@ -2089,7 +2089,7 @@ def visit_STRING(self, leaf: Leaf) -> Iterator[Line]:
if prev_siblings_are(
leaf.parent, [None, token.NEWLINE, token.INDENT, syms.simple_stmt]
) and is_multiline_string(leaf):
prefix = " " * self.current_line.depth
prefix = " " * self.current_line.depth
docstring = fix_docstring(leaf.value[3:-3], prefix)
leaf.value = leaf.value[0:3] + docstring + leaf.value[-3:]
normalize_string_quotes(leaf)
Expand Down

0 comments on commit d9ff43c

Please sign in to comment.