Skip to content

Commit 03c7d35

Browse files
authored
Merge pull request #24852 from gschwind/pr-fix-hyphen-replacement
PR: Fix hyphens followed by digit in error messages (IPython console)
2 parents 30c34ca + abd793f commit 03c7d35

File tree

1 file changed

+1
-1
lines changed
  • spyder/plugins/ipythonconsole/widgets

1 file changed

+1
-1
lines changed

spyder/plugins/ipythonconsole/widgets/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ def show_kernel_error(self, error):
508508

509509
# Don't break lines in hyphens
510510
# From https://stackoverflow.com/q/7691569/438386
511-
error = error.replace('-', '&#8209')
511+
error = error.replace('-', '‑')
512512

513513
# Create error page
514514
message = _("An error occurred while starting the kernel")

0 commit comments

Comments
 (0)