summaryrefslogtreecommitdiff
path: root/test/DocTests.py
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2015-07-28 22:07:10 +0200
committerAlexis Hildebrandt <afh@surryhill.net>2015-07-28 22:07:10 +0200
commit68ecc043cc69917582d81ac3514372bc3f690e0b (patch)
tree665706caff8300ee4c5d26b9806f912cf1d956e8 /test/DocTests.py
parentd0fba947ade223dfa351c49ac15c6939c35b5f89 (diff)
downloadfork-ledger-68ecc043cc69917582d81ac3514372bc3f690e0b.tar.gz
fork-ledger-68ecc043cc69917582d81ac3514372bc3f690e0b.tar.bz2
fork-ledger-68ecc043cc69917582d81ac3514372bc3f690e0b.zip
[tests] Allow string continuation in documentation
in long documentation examples.
Diffstat (limited to 'test/DocTests.py')
-rwxr-xr-xtest/DocTests.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/DocTests.py b/test/DocTests.py
index ac681bc2..7af7abc3 100755
--- a/test/DocTests.py
+++ b/test/DocTests.py
@@ -108,6 +108,7 @@ class DocTests:
validate_command = False
try:
command = example[self.testin_token][self.testin_token]
+ command = re.sub(r'\\\n', '', command)
except KeyError:
if self.validate_dat_token in example:
command = '$ ledger bal'