{"action":"created","issue":{"url":"https://api.github.com/repos/WrinklyNinja/yaml-cpp/issues/1","labels_url":"https://api.github.com/repos/WrinklyNinja/yaml-cpp/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/WrinklyNinja/yaml-cpp/issues/1/comments","events_url":"https://api.github.com/repos/WrinklyNinja/yaml-cpp/issues/1/events","html_url":"https://github.com/WrinklyNinja/yaml-cpp/issues/1","id":65895695,"number":1,"title":"Emitter styles cause change in output","user":{"login":"WrinklyNinja","id":2430738,"avatar_url":"https://avatars.githubusercontent.com/u/2430738?v=3","gravatar_id":"","url":"https://api.github.com/users/WrinklyNinja","html_url":"https://github.com/WrinklyNinja","followers_url":"https://api.github.com/users/WrinklyNinja/followers","following_url":"https://api.github.com/users/WrinklyNinja/following{/other_user}","gists_url":"https://api.github.com/users/WrinklyNinja/gists{/gist_id}","starred_url":"https://api.github.com/users/WrinklyNinja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WrinklyNinja/subscriptions","organizations_url":"https://api.github.com/users/WrinklyNinja/orgs","repos_url":"https://api.github.com/users/WrinklyNinja/repos","events_url":"https://api.github.com/users/WrinklyNinja/events{/privacy}","received_events_url":"https://api.github.com/users/WrinklyNinja/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-02T10:03:03Z","updated_at":"2015-04-02T10:25:51Z","closed_at":null,"body":"If I build yaml-cpp at 2c340f0546df808d5d75ef4a4ccbbf30482d5e77 and then build LOOT using that, everything works fine. However, if I build yaml-cpp at 9eae039c919263e6b6c8af3919e3414e2be3bb39, LOOT will still build correctly, but upon startup it will be unable to read the settings file, complaining about `Unexpected token :`. This is because LOOT uses yaml-cpp to pass data as JSON from C++ to JS, and something has broken.\r\n\r\nThe correct output is:\r\n\r\n```\r\n{\"games\": [{\"path\": \"\", \"registry\": \"Software\\\\Bethesda Softworks\\\\Fallout3\\\\Installed Path\", \"type\": \"Fallout3\", \"name\": \"Fallout 3\", \"folder\": \"Fallout3\", \"repo\": \"https://github.com/loot/fallout3.git\", \"master\": \"Fallout3.esm\", \"branch\": \"master\"}, {\"name\": \"TES IV: Oblivion\", \"type\": \"Oblivion\", \"master\": \"Oblivion.esm\", \"folder\": \"Oblivion\", \"repo\": \"https://github.com/loot/oblivion.git\", \"branch\": \"master\", \"path\": \"C:\\\\Program Files (x86)\\\\Steam\\\\steamapps\\\\common\\\\Oblivion\\\\\", \"registry\": \"Software\\\\Bethesda Softworks\\\\Oblivion\\\\Installed Path\"}, {\"type\": \"Skyrim\", \"name\": \"TES V: Skyrim\", \"repo\": \"https://github.com/loot/skyrim.git\", \"master\": \"Skyrim.esm\", \"folder\": \"Skyrim\", \"branch\": \"master\", \"registry\": \"Software\\\\Bethesda Softworks\\\\Skyrim\\\\Installed Path\", \"path\": \"C:\\\\Program Files (x86)\\\\Steam\\\\steamapps\\\\common\\\\Skyrim\\\\\"}, {\"folder\": \"FalloutNV\", \"master\": \"FalloutNV.esm\", \"name\": \"Fallout: New Vegas\", \"path\": \"\", \"branch\": \"master\", \"repo\": \"https://github.com/loot/falloutnv.git\", \"registry\": \"Software\\\\Bethesda Softworks\\\\FalloutNV\\\\Installed Path\", \"type\": \"FalloutNV\"}], \"window\": {\"top\": 97, \"bottom\": 835, \"left\": 66, \"right\": 1327}, \"game\": \"auto\", \"enableDebugLogging\": false, \"lastGame\": \"Skyrim\", \"language\": \"en\", \"lastVersion\": \"0.7.0\", \"updateMasterlist\": true}\r\n```\r\n\r\nThe bad output is:\r\n\r\n```\r\n\"games\":\r\n  - \"type\": \"Fallout3\"\r\n    \"name\": \"Fallout 3\"\r\n    \"repo\": \"https://github.com/loot/fallout3.git\"\r\n    \"master\": \"Fallout3.esm\"\r\n    \"folder\": \"Fallout3\"\r\n    \"branch\": \"master\"\r\n    \"path\": \"\"\r\n    \"registry\": \"Software\\\\Bethesda Softworks\\\\Fallout3\\\\Installed Path\"\r\n  - {\"name\": \"TES IV: Oblivion\", \"type\": \"Oblivion\", \"folder\": \"Oblivion\", \"repo\": \"https://github.com/loot/oblivion.git\", \"master\": \"Oblivion.esm\", \"branch\": \"master\", \"registry\": \"Software\\\\Bethesda Softworks\\\\Oblivion\\\\Installed Path\", \"path\": \"C:\\\\Program Files (x86)\\\\Steam\\\\steamapps\\\\common\\\\Oblivion\\\\\"}\r\n  - {\"type\": \"Skyrim\", \"name\": \"TES V: Skyrim\", \"folder\": \"Skyrim\", \"repo\": \"https://github.com/loot/skyrim.git\", \"master\": \"Skyrim.esm\", \"path\": \"C:\\\\Program Files (x86)\\\\Steam\\\\steamapps\\\\common\\\\Skyrim\\\\\", \"registry\": \"Software\\\\Bethesda Softworks\\\\Skyrim\\\\Installed Path\", \"branch\": \"master\"}\r\n  - {\"type\": \"FalloutNV\", \"name\": \"Fallout: New Vegas\", \"folder\": \"FalloutNV\", \"repo\": \"https://github.com/loot/falloutnv.git\", \"branch\": \"master\", \"master\": \"FalloutNV.esm\", \"registry\": \"Software\\\\Bethesda Softworks\\\\FalloutNV\\\\Installed Path\", \"path\": \"\"}\r\n\"window\":\r\n  \"bottom\": 835\r\n  \"top\": 97\r\n  \"left\": 66\r\n  \"right\": 1327\r\n\"game\": \"auto\"\r\n\"enableDebugLogging\": false\r\n\"lastGame\": \"Skyrim\"\r\n\"updateMasterlist\": true\r\n\"lastVersion\": \"0.7.0\"\r\n\"language\": \"en\"\r\n```\r\n\r\nAlthough LOOT sets the sequence and map styles to be flow on the emitter, these seem to be ignored."},"comment":{"url":"https://api.github.com/repos/WrinklyNinja/yaml-cpp/issues/comments/88860001","html_url":"https://github.com/WrinklyNinja/yaml-cpp/issues/1#issuecomment-88860001","issue_url":"https://api.github.com/repos/WrinklyNinja/yaml-cpp/issues/1","id":88860001,"user":{"login":"WrinklyNinja","id":2430738,"avatar_url":"https://avatars.githubusercontent.com/u/2430738?v=3","gravatar_id":"","url":"https://api.github.com/users/WrinklyNinja","html_url":"https://github.com/WrinklyNinja","followers_url":"https://api.github.com/users/WrinklyNinja/followers","following_url":"https://api.github.com/users/WrinklyNinja/following{/other_user}","gists_url":"https://api.github.com/users/WrinklyNinja/gists{/gist_id}","starred_url":"https://api.github.com/users/WrinklyNinja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WrinklyNinja/subscriptions","organizations_url":"https://api.github.com/users/WrinklyNinja/orgs","repos_url":"https://api.github.com/users/WrinklyNinja/repos","events_url":"https://api.github.com/users/WrinklyNinja/events{/privacy}","received_events_url":"https://api.github.com/users/WrinklyNinja/received_events","type":"User","site_admin":false},"created_at":"2015-04-02T10:25:51Z","updated_at":"2015-04-02T10:25:51Z","body":"9880b608b931dd83363016914988367ca1212d49 works correctly too, but 0c280724e96787d08147cdca0bfe2c1123eb258d fails, so that's where the issue is introduced. Commenting out the two `node.set_style(style);` lines added to `src/nodebuilder.cpp` in that commit resolves the issue."}}