{"action":"created","issue":{"url":"https://api.github.com/repos/getnikola/nikola/issues/1601","labels_url":"https://api.github.com/repos/getnikola/nikola/issues/1601/labels{/name}","comments_url":"https://api.github.com/repos/getnikola/nikola/issues/1601/comments","events_url":"https://api.github.com/repos/getnikola/nikola/issues/1601/events","html_url":"https://github.com/getnikola/nikola/pull/1601","id":55580927,"number":1601,"title":"Removing empty line that produces an invalid '-->' output when importing md","user":{"login":"magmax","id":584026,"avatar_url":"https://avatars.githubusercontent.com/u/584026?v=3","gravatar_id":"","url":"https://api.github.com/users/magmax","html_url":"https://github.com/magmax","followers_url":"https://api.github.com/users/magmax/followers","following_url":"https://api.github.com/users/magmax/following{/other_user}","gists_url":"https://api.github.com/users/magmax/gists{/gist_id}","starred_url":"https://api.github.com/users/magmax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magmax/subscriptions","organizations_url":"https://api.github.com/users/magmax/orgs","repos_url":"https://api.github.com/users/magmax/repos","events_url":"https://api.github.com/users/magmax/events{/privacy}","received_events_url":"https://api.github.com/users/magmax/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-27T06:26:45Z","updated_at":"2015-01-27T08:58:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/getnikola/nikola/pulls/1601","html_url":"https://github.com/getnikola/nikola/pull/1601","diff_url":"https://github.com/getnikola/nikola/pull/1601.diff","patch_url":"https://github.com/getnikola/nikola/pull/1601.patch"},"body":"When importing markdown, this line produces metadata like these:\r\n\r\n```\r\n<!--\r\n.. title: foo\r\n.. slug: bar\r\n.. date: 2001/01/01\r\n\r\n-->\r\n```\r\n\r\nThat is processed genarating the line:\r\n\r\n```\r\n<p>--&gt;</p>\r\n```\r\n\r\nWhat is invalid.\r\n\r\nThis fix will generate metadata like:\r\n```\r\n<!--\r\n.. title: foo\r\n.. slug: bar\r\n.. date: 2001/01/01\r\n-->\r\n```\r\n\r\nWhat is processed as expected."},"comment":{"url":"https://api.github.com/repos/getnikola/nikola/issues/comments/71611600","html_url":"https://github.com/getnikola/nikola/pull/1601#issuecomment-71611600","issue_url":"https://api.github.com/repos/getnikola/nikola/issues/1601","id":71611600,"user":{"login":"Kwpolska","id":327323,"avatar_url":"https://avatars.githubusercontent.com/u/327323?v=3","gravatar_id":"","url":"https://api.github.com/users/Kwpolska","html_url":"https://github.com/Kwpolska","followers_url":"https://api.github.com/users/Kwpolska/followers","following_url":"https://api.github.com/users/Kwpolska/following{/other_user}","gists_url":"https://api.github.com/users/Kwpolska/gists{/gist_id}","starred_url":"https://api.github.com/users/Kwpolska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kwpolska/subscriptions","organizations_url":"https://api.github.com/users/Kwpolska/orgs","repos_url":"https://api.github.com/users/Kwpolska/repos","events_url":"https://api.github.com/users/Kwpolska/events{/privacy}","received_events_url":"https://api.github.com/users/Kwpolska/received_events","type":"User","site_admin":false},"created_at":"2015-01-27T08:58:06Z","updated_at":"2015-01-27T08:58:06Z","body":"Okay.  What do you mean by **importing**?  Do you mean `nikola new_post -i /path/to/other/md/file.md`?\r\n\r\nIf yes, you fixed the wrong place.  On your branch, all the compilers generate garbage in new posts:\r\n\r\n```\r\n.. type: text-->\r\n\r\nWrite your post here.\r\n```\r\n\r\n```\r\n.. type: text\r\nWrite your post here.\r\n```\r\n\r\nAnd in imported posts:\r\n\r\n```\r\n(nikola-py2)[kwpolska@kw-cassandra /tmp]% nikola init -q n\r\n[2015-01-27T08:44:01Z] INFO: init: Created empty site at n.\r\n(nikola-py2)[kwpolska@kw-cassandra /tmp]% cd n\r\n(nikola-py2)[kwpolska@kw-cassandra n]% vim conf.py import.md\r\n# markdown support added to POSTS\r\n(nikola-py2)[kwpolska@kw-cassandra n]% cat import.md\r\nThis is a post that I am willing to import.\r\n(nikola-py2)[kwpolska@kw-cassandra n]% nikola new_post -f markdown -t imp -i import.md\r\nImporting Existing Post\r\n-----------------------\r\n\r\nTitle: imp\r\nScanning posts.....done!\r\n[2015-01-27T08:54:19Z] INFO: new_post: Your post's text is at: posts/imp.md\r\n(nikola-py2)[kwpolska@kw-cassandra n]% cat posts/imp.md\r\n<!-- \r\n.. title: imp\r\n.. slug: imp\r\n.. date: 2015-01-27 08:54:19 UTC\r\n.. tags: \r\n.. category: \r\n.. link: \r\n.. description: \r\n.. type: text-->\r\n\r\nThis is a post that I am willing to import.\r\n```\r\n\r\n1. What are you doing to *import* posts?\r\n2. What are you importing?\r\n3. Can you reproduce with a **clean site** (extended only to support markdown)?"}}