diff options
Diffstat (limited to 'sphinx/environment/__init__.py')
| -rw-r--r-- | sphinx/environment/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/environment/__init__.py b/sphinx/environment/__init__.py index dee67c96d..8de0a9960 100644 --- a/sphinx/environment/__init__.py +++ b/sphinx/environment/__init__.py @@ -692,7 +692,7 @@ class BuildEnvironment(object): lineend = len(error.object) lineno = error.object.count(b'\n', 0, error.start) + 1 logger.warning('undecodable source characters, replacing with "?": %r', - (error.object[linestart+1:error.start] + b'>>>' + + (error.object[linestart + 1:error.start] + b'>>>' + error.object[error.start:error.end] + b'<<<' + error.object[error.end:lineend]), location=(self.docname, lineno)) |
