diff --git a/Doc/ref/ref2.tex b/Doc/ref/ref2.tex index 11dea968d1f..74aaae4b7e5 100644 --- a/Doc/ref/ref2.tex +++ b/Doc/ref/ref2.tex @@ -195,13 +195,13 @@ def perm(l): The following example shows various indentation errors: \begin{verbatim} - def perm(l): # error: first line indented - for i in range(len(l)): # error: not indented - s = l[:i] + l[i+1:] - p = perm(l[:i] + l[i+1:]) # error: unexpected indent - for x in p: - r.append(l[i:i+1] + x) - return r # error: inconsistent dedent + def perm(l): # error: first line indented +for i in range(len(l)): # error: not indented + s = l[:i] + l[i+1:] + p = perm(l[:i] + l[i+1:]) # error: unexpected indent + for x in p: + r.append(l[i:i+1] + x) + return r # error: inconsistent dedent \end{verbatim} (Actually, the first three errors are detected by the parser; only the @@ -327,7 +327,7 @@ String literals are described by the following lexical definitions: \production{shortstringchar} {} \production{longstringchar} - {} + {} \production{escapeseq} {"\e" } \end{productionlist}