Skip to content
This repository was archived by the owner on Jan 24, 2024. It is now read-only.

Commit 68d16bf

Browse files
committed
Fix multisplit for option descriptions
1 parent eaa190b commit 68d16bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pollbot/helper/creation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def add_options(poll, text, is_date=False):
8181
# Extract the description if existing
8282
if not is_date and '-' in option_to_add:
8383
# Extract and strip the description
84-
splitted = option_to_add.split('-')
84+
splitted = option_to_add.split('-', 1)
8585
option_to_add = splitted[0].strip()
8686
description = splitted[1].strip()
8787
if description == '':

0 commit comments

Comments
 (0)