Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9479c95

Browse files
committed
Remove extra indenatation from sample interpreter session.
Remove whitespace from the middle of an inline RE example; it was OK for the typeset formats, but LaTeX2HTML is more touchy about this.
1 parent dfd0b29 commit 9479c95

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

Doc/lib/libre.tex

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -857,17 +857,17 @@ \subsection{Examples}
857857
\code{maximum recursion limit exceeded}. For example,
858858

859859
\begin{verbatim}
860-
>>> s = "<" + "that's a very big string!"*1000 + ">"
861-
>>> re.match('<.*?>', s)
862-
Traceback (most recent call last):
863-
File "<stdin>", line 1, in ?
864-
File "/usr/local/lib/python2.3/sre.py", line 132, in match
865-
return _compile(pattern, flags).match(string)
866-
RuntimeError: maximum recursion limit exceeded
860+
>>> s = "<" + "that's a very big string!"*1000 + ">"
861+
>>> re.match('<.*?>', s)
862+
Traceback (most recent call last):
863+
File "<stdin>", line 1, in ?
864+
File "/usr/local/lib/python2.3/sre.py", line 132, in match
865+
return _compile(pattern, flags).match(string)
866+
RuntimeError: maximum recursion limit exceeded
867867
\end{verbatim}
868868

869869
You can often restructure your regular expression to avoid backtracking.
870-
The above regular expression can be recast as \regexp{\textless
871-
[\textasciicircum \textgreater]*\textgreater}. As a further
872-
benefit, such regular expressions will run faster than their backtracking
873-
equivalents.
870+
The above regular expression can be recast as
871+
\regexp{\textless[\textasciicircum \textgreater]*\textgreater}. As a
872+
further benefit, such regular expressions will run faster than their
873+
backtracking equivalents.

0 commit comments

Comments
 (0)