summaryrefslogtreecommitdiffstats
path: root/tabellio
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2011-11-08 06:51:11 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2011-11-08 06:51:11 (GMT)
commit6c947f2e88cdf1ab877054793ad146110a698542 (patch)
treebe696dbdc9454592a2d434b210d6c0428c81080f /tabellio
parent9bca064ce794225b7ff1d6bd9a4cc8f7cd2c3e2e (diff)
downloadtabellio.pcfdb-6c947f2e88cdf1ab877054793ad146110a698542.zip
tabellio.pcfdb-6c947f2e88cdf1ab877054793ad146110a698542.tar.gz
tabellio.pcfdb-6c947f2e88cdf1ab877054793ad146110a698542.tar.bz2
do not allow spaces in question titles
Diffstat (limited to 'tabellio')
-rw-r--r--tabellio/pcfdb/sync.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tabellio/pcfdb/sync.py b/tabellio/pcfdb/sync.py
index aedd6cb..616c993 100644
--- a/tabellio/pcfdb/sync.py
+++ b/tabellio/pcfdb/sync.py
@@ -803,6 +803,8 @@ class SyncFromPcfDbView(BrowserView):
if not hasattr(self.questions_folder, dos_id):
self.questions_folder.invokeFactory('tabellio.documents.question', dos_id)
object = getattr(self.questions_folder, dos_id)
+ if intit and '\n' in intit:
+ intit = intit.replace('\n', ' ').replace('\r', '')
object.title = intit
object.session = sess
object.state = state