Parcourir la source

Merge pull request #3978 from ThomasWaldmann/fix-nanorst

nanorst: add missing blank to exception message
TW il y a 7 ans
Parent
commit
d2a816d0d4
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/borg/nanorst.py

+ 2 - 2
src/borg/nanorst.py

@@ -105,8 +105,8 @@ def rst_to_text(text, state_hook=None, references=None):
                     try:
                         out.write(references[ref])
                     except KeyError:
-                        raise ValueError("Undefined reference in Archiver help: %r — please add reference substitution"
-                                         "to 'rst_plain_text_references'" % ref)
+                        raise ValueError("Undefined reference in Archiver help: %r — please add reference "
+                                         "substitution to 'rst_plain_text_references'" % ref)
                     continue
                 if char == ':' and text.peek(2) == ':\n':  # End of line code block
                     text.read(2)