Open ghost opened 8 years ago
Hi, I've not heard of that happening before, could you send me the downloaded JSON, or an example where this issue occurs? Thanks
On 06/05/2016, cullen28 notifications@github.com wrote:
Hi.
The Slackbot Quiz Builder removes all spaces from questions and answers when you download the JSON output.
http://codebyfire.github.io/slackquizbotbuilder/
You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/codebyfire/slackquizbot/issues/6
Actually the issue only seems to be happening in Firefox v46.0.1. I tried this in Chrome and the JSON output is minified by maintains its whitespace in the Q's & A's.
Here is the JSON downloaded from Firefox:
{"questions":[{"answers":[{"text":["TinaTurner"]}],"image":"http://www.theworkprint.com/wp-content/uploads/2015/05/mad-max-beyond-thunder-movie-poster-a-look-back.jpg","text":"WhichsingerjoinedMelGibsoninthemovieMadMax:BeyondTheThunderdome?"},{"answers":[{"text":["116"]}],"text":"Howmanyyearswasthehundredyearwar?"},{"answers":[{"text":["Alaska"]}],"text":"WhichAmericanstateisnearesttotheformerSovietUnion?"},{"answers":[{"text":["BobMarley"]}],"image":"https://i.ytimg.com/vi/YAQkQpQ0L4w/hqdefault.jpg","text":"Whichreggaesingingstardied11thMay1981?"},{"answers":[{"text":["Sugar"]}],"image":"http://www.rotaryclubofgloucester.com/file/2016/04/selection-of-alcohol-595x240.jpg","text":"Whatisconvertedintoalcoholduringbrewing?"},{"answers":[{"text":["Ovine"]}],"image":"https://upload.wikimedia.org/wikipedia/commons/1/12/A_sheep_in_the_long_grass.jpg","text":"Ifcatsarefeline,whataresheep?"},{"answers":[{"text":["Alien"]}],"image":"http://static1.squarespace.com/static/54e483f3e4b0408d9cfed01c/54f88310e4b09110a033fd3d/54f88351e4b09110a033ff23/1426110139989/El+Galeon_00_high-res+(Courtesy+of+Fundacion+Nao+Victoria).jpg?format=500w","text":"Inwhich1979filmwasthespaceshipcalledNostromo?"},{"answers":[{"text":["Calf"]}],"image":"http://i2.mirror.co.uk/incoming/article6923795.ece/ALTERNATES/s615/Gemma-Collins-show-the-her-bruised-boobs-Gemma-said-Im-battered-and-bruised-but-its-not-going-to-stop-me-diving.jpg","text":"Whatisaninfantwhalecommonlycalled?"},{"answers":[{"text":["9","Nine"]}],"image":"http://foodanddrink.yorkshirepost.co.uk/wp-content/uploads/2015/04/o-PINT-GLASS-BEER-facebook.jpg","text":"Howmanygallonsofbeerareinafirkin?"},{"answers":[{"text":["Holt"]}],"text":"Whatisanotter'shomecalled?"},{"answers":[{"text":["Beaver"]}],"text":"WhatisCanada'snationalanimal?"},{"answers":[{"text":["Blood"]}],"text":"Aphlebotomistextractswhatfromthehumanbody(nothingdirty)?"},{"answers":[{"text":["Coconut"]}],"text":"NariyalistheIndiantermforwhichnut?"},{"answers":[{"text":["Snake"]}],"image":"http://gif-finder.com/wp-content/uploads/2015/12/Babboon-Fake-Smile.png","text":"Whattypeofcreatureisadugite?"},{"answers":[{"text":["MrSnookums"]}],"image":"https://s-media-cache-ak0.pinimg.com/736x/3c/8f/2c/3c8f2c5e5ddc6b9b7cd7889d6c6efefd.jpg","text":"WhatisthenameofMoe'spetcatinthecartoonshowTheSimpsons?"},{"answers":[{"text":["Jupiter"]}],"image":"http://www.projet-voltaire.fr/blog/wp-content/uploads/2013/11/Carotte-300x271.jpg","text":"Whichplanettakesaround4332earthdaystoorbittheSun?"},{"answers":[{"text":["Drinking"]}],"text":"OfwhatisDipsophobiaafear?"},{"answers":[{"text":["Nothing","Nowt","Itwasempty"]}],"text":"WhatdidOldMotherHubbardfindinhercupboard?"},{"answers":[{"text":["HestonBlumenthal"]}],"text":"Whichchefuseschemistryandphysicstocreatenewandunusualdishes?"},{"answers":[{"text":["FreddieMercury"]}],"text":"WhoserealnamewasFarrokhBulsara?"},{"answers":[{"text":["Sparrow"]}],"image":"http://i.telegraph.co.uk/multimedia/archive/02087/badger_2087377b.jpg","text":"WhatwasthemostseenbirdintheRSPBBirdwatchsurveyofJanuary2014?"},{"answers":[{"text":["Esmeralda"]}],"image":"http://uvmbored.com/wp-content/uploads/2015/11/quasimodo-the-hunchback-of-notre-dame-capturas-captures-screencaps-fotogramas-el-jorobado-de-notre-dame-disney-principes-heroes-18664.jpg","text":"WhatisthenameofthegirlintheHunchbackofNotreDame?"},{"answers":[{"text":["Eggs"]}],"text":"Onwhichfoodwereweencouragedto\"gotoworkon\"byadvertsinthe1950s?"},{"answers":[{"text":["Asia"]}],"image":"https://upload.wikimedia.org/wikipedia/commons/5/5b/Tree_in_new_leaves_(Tectona_grandis)_I_IMG_8133.jpg","text":"Theteaktreeisnativetowhichcontinent?"},{"answers":[{"text":["None","0","Zero"]}],"image":"http://www.wintergamesnz.kiwi/wp-content/uploads/2013/03/Winter-Games-NZ-unveils-2013-programme.jpg","text":"Upto2014,howmanytimeshavecountriesintheSouthernHemispherehostedthewintergames?"}],"settings":{"nextQuestionGap":10,"pointsPerQuestion":1,"questionTime":60,"randomise":false,"startQuestionGap":3}}
Thanks.
Hi.
The Slackbot Quiz Builder removes all spaces from questions and answers when you download the JSON output.
http://codebyfire.github.io/slackquizbotbuilder/