Merge pull request #4328 from dachary/wip-poll-empty-lines
FIX: poll builder should ignore empty lines
This commit is contained in:
@@ -112,7 +112,9 @@ export default Ember.Controller.extend({
|
||||
output += `${pollHeader}\n`;
|
||||
|
||||
if (pollOptions.length > 0 && !isNumber) {
|
||||
output += `${pollOptions.split("\n").map(option => `* ${option}`).join("\n")}\n`;
|
||||
pollOptions.split("\n").forEach(option => {
|
||||
if (option.length !== 0) output += `* ${option}\n`;
|
||||
});
|
||||
}
|
||||
|
||||
output += '[/poll]';
|
||||
|
||||
Reference in New Issue
Block a user