{"action":"created","comment":{"url":"https://api.github.com/repos/NDLANO/article-api/pulls/comments/88196098","pull_request_review_id":8775408,"id":88196098,"diff_hunk":"@@ -115,6 +115,21 @@ class HTMLCleanerTest extends UnitSuite {\n     result.ingress should equal(Some(expectedIngressResult))\n   }\n \n+  test(\"standalone text in a section is wrapped in <p> tags\") {\n+    val content = s\"\"\"<section>\n+                      |Medievanene er i endring.\n+                      |<h2>Mediehverdagen</h2>\n+                      |</section>\"\"\".stripMargin.replace(\"\\n\", \"\")\n+    val expectedContentResult = s\"\"\"<section>\n+                      |<p>Medievanene er i endring.</p>\n+                      |<h2>Mediehverdagen</h2>\n+                      |</section>\"\"\".stripMargin.replace(\"\\n\", \"\")\n+\n+    val (result, status) = HTMLCleaner.convert(defaultLanguageContent.copy(content=content), defaultImportStatus)\n+\n+    result.content should equal(expectedContentResult)\n+  }\n+","path":"src/test/scala/no/ndla/articleapi/service/converters/HTMLCleanerTest.scala","position":18,"original_position":18,"commit_id":"957aa24e8c3d8c71b0ca36eec669265d327201a5","original_commit_id":"957aa24e8c3d8c71b0ca36eec669265d327201a5","user":{"login":"narhen","id":1045380,"avatar_url":"https://avatars.githubusercontent.com/u/1045380?v=3","gravatar_id":"","url":"https://api.github.com/users/narhen","html_url":"https://github.com/narhen","followers_url":"https://api.github.com/users/narhen/followers","following_url":"https://api.github.com/users/narhen/following{/other_user}","gists_url":"https://api.github.com/users/narhen/gists{/gist_id}","starred_url":"https://api.github.com/users/narhen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/narhen/subscriptions","organizations_url":"https://api.github.com/users/narhen/orgs","repos_url":"https://api.github.com/users/narhen/repos","events_url":"https://api.github.com/users/narhen/events{/privacy}","received_events_url":"https://api.github.com/users/narhen/received_events","type":"User","site_admin":false},"body":"Kunne kanskje hatt en test til som sjekker at \"tomme\" tekster ikke blir wrappet i <p> tags.\r\nAntar at `!child.asInstanceOf[TextNode].isBlank` i HTMLCleaner.scala` forhindrer dette","created_at":"2016-11-16T09:17:43Z","updated_at":"2016-11-16T09:17:43Z","html_url":"https://github.com/NDLANO/article-api/pull/33#discussion_r88196098","pull_request_url":"https://api.github.com/repos/NDLANO/article-api/pulls/33","_links":{"self":{"href":"https://api.github.com/repos/NDLANO/article-api/pulls/comments/88196098"},"html":{"href":"https://github.com/NDLANO/article-api/pull/33#discussion_r88196098"},"pull_request":{"href":"https://api.github.com/repos/NDLANO/article-api/pulls/33"}}},"pull_request":{"url":"https://api.github.com/repos/NDLANO/article-api/pulls/33","id":93722127,"html_url":"https://github.com/NDLANO/article-api/pull/33","diff_url":"https://github.com/NDLANO/article-api/pull/33.diff","patch_url":"https://github.com/NDLANO/article-api/pull/33.patch","issue_url":"https://api.github.com/repos/NDLANO/article-api/issues/33","number":33,"state":"open","locked":false,"title":"Ndlano/issue#96 add mssing p tags in import","user":{"login":"chrpeter","id":1065009,"avatar_url":"https://avatars.githubusercontent.com/u/1065009?v=3","gravatar_id":"","url":"https://api.github.com/users/chrpeter","html_url":"https://github.com/chrpeter","followers_url":"https://api.github.com/users/chrpeter/followers","following_url":"https://api.github.com/users/chrpeter/following{/other_user}","gists_url":"https://api.github.com/users/chrpeter/gists{/gist_id}","starred_url":"https://api.github.com/users/chrpeter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrpeter/subscriptions","organizations_url":"https://api.github.com/users/chrpeter/orgs","repos_url":"https://api.github.com/users/chrpeter/repos","events_url":"https://api.github.com/users/chrpeter/events{/privacy}","received_events_url":"https://api.github.com/users/chrpeter/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-15T08:40:52Z","updated_at":"2016-11-16T09:17:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a0e392d1c0c91f7298f4206a65d4178188c4dbc7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/NDLANO/article-api/pulls/33/commits","review_comments_url":"https://api.github.com/repos/NDLANO/article-api/pulls/33/comments","review_comment_url":"https://api.github.com/repos/NDLANO/article-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NDLANO/article-api/issues/33/comments","statuses_url":"https://api.github.com/repos/NDLANO/article-api/statuses/957aa24e8c3d8c71b0ca36eec669265d327201a5","head":{"label":"NDLANO:NDLANO/Issue#96-Add-mssing-p-tags-in-import","ref":"NDLANO/Issue#96-Add-mssing-p-tags-in-import","sha":"957aa24e8c3d8c71b0ca36eec669265d327201a5","user":{"login":"NDLANO","id":20052513,"avatar_url":"https://avatars.githubusercontent.com/u/20052513?v=3","gravatar_id":"","url":"https://api.github.com/users/NDLANO","html_url":"https://github.com/NDLANO","followers_url":"https://api.github.com/users/NDLANO/followers","following_url":"https://api.github.com/users/NDLANO/following{/other_user}","gists_url":"https://api.github.com/users/NDLANO/gists{/gist_id}","starred_url":"https://api.github.com/users/NDLANO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NDLANO/subscriptions","organizations_url":"https://api.github.com/users/NDLANO/orgs","repos_url":"https://api.github.com/users/NDLANO/repos","events_url":"https://api.github.com/users/NDLANO/events{/privacy}","received_events_url":"https://api.github.com/users/NDLANO/received_events","type":"Organization","site_admin":false},"repo":{"id":66824916,"name":"article-api","full_name":"NDLANO/article-api","owner":{"login":"NDLANO","id":20052513,"avatar_url":"https://avatars.githubusercontent.com/u/20052513?v=3","gravatar_id":"","url":"https://api.github.com/users/NDLANO","html_url":"https://github.com/NDLANO","followers_url":"https://api.github.com/users/NDLANO/followers","following_url":"https://api.github.com/users/NDLANO/following{/other_user}","gists_url":"https://api.github.com/users/NDLANO/gists{/gist_id}","starred_url":"https://api.github.com/users/NDLANO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NDLANO/subscriptions","organizations_url":"https://api.github.com/users/NDLANO/orgs","repos_url":"https://api.github.com/users/NDLANO/repos","events_url":"https://api.github.com/users/NDLANO/events{/privacy}","received_events_url":"https://api.github.com/users/NDLANO/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NDLANO/article-api","description":"API for accessing articles from NDLA","fork":false,"url":"https://api.github.com/repos/NDLANO/article-api","forks_url":"https://api.github.com/repos/NDLANO/article-api/forks","keys_url":"https://api.github.com/repos/NDLANO/article-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NDLANO/article-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NDLANO/article-api/teams","hooks_url":"https://api.github.com/repos/NDLANO/article-api/hooks","issue_events_url":"https://api.github.com/repos/NDLANO/article-api/issues/events{/number}","events_url":"https://api.github.com/repos/NDLANO/article-api/events","assignees_url":"https://api.github.com/repos/NDLANO/article-api/assignees{/user}","branches_url":"https://api.github.com/repos/NDLANO/article-api/branches{/branch}","tags_url":"https://api.github.com/repos/NDLANO/article-api/tags","blobs_url":"https://api.github.com/repos/NDLANO/article-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NDLANO/article-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NDLANO/article-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/NDLANO/article-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NDLANO/article-api/statuses/{sha}","languages_url":"https://api.github.com/repos/NDLANO/article-api/languages","stargazers_url":"https://api.github.com/repos/NDLANO/article-api/stargazers","contributors_url":"https://api.github.com/repos/NDLANO/article-api/contributors","subscribers_url":"https://api.github.com/repos/NDLANO/article-api/subscribers","subscription_url":"https://api.github.com/repos/NDLANO/article-api/subscription","commits_url":"https://api.github.com/repos/NDLANO/article-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/NDLANO/article-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/NDLANO/article-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/NDLANO/article-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/NDLANO/article-api/contents/{+path}","compare_url":"https://api.github.com/repos/NDLANO/article-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NDLANO/article-api/merges","archive_url":"https://api.github.com/repos/NDLANO/article-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NDLANO/article-api/downloads","issues_url":"https://api.github.com/repos/NDLANO/article-api/issues{/number}","pulls_url":"https://api.github.com/repos/NDLANO/article-api/pulls{/number}","milestones_url":"https://api.github.com/repos/NDLANO/article-api/milestones{/number}","notifications_url":"https://api.github.com/repos/NDLANO/article-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NDLANO/article-api/labels{/name}","releases_url":"https://api.github.com/repos/NDLANO/article-api/releases{/id}","deployments_url":"https://api.github.com/repos/NDLANO/article-api/deployments","created_at":"2016-08-29T08:17:40Z","updated_at":"2016-11-08T10:50:32Z","pushed_at":"2016-11-16T08:25:58Z","git_url":"git://github.com/NDLANO/article-api.git","ssh_url":"git@github.com:NDLANO/article-api.git","clone_url":"https://github.com/NDLANO/article-api.git","svn_url":"https://github.com/NDLANO/article-api","homepage":null,"size":789,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"NDLANO:master","ref":"master","sha":"d69843b8c547b386488dee9f9240dccec92d66b9","user":{"login":"NDLANO","id":20052513,"avatar_url":"https://avatars.githubusercontent.com/u/20052513?v=3","gravatar_id":"","url":"https://api.github.com/users/NDLANO","html_url":"https://github.com/NDLANO","followers_url":"https://api.github.com/users/NDLANO/followers","following_url":"https://api.github.com/users/NDLANO/following{/other_user}","gists_url":"https://api.github.com/users/NDLANO/gists{/gist_id}","starred_url":"https://api.github.com/users/NDLANO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NDLANO/subscriptions","organizations_url":"https://api.github.com/users/NDLANO/orgs","repos_url":"https://api.github.com/users/NDLANO/repos","events_url":"https://api.github.com/users/NDLANO/events{/privacy}","received_events_url":"https://api.github.com/users/NDLANO/received_events","type":"Organization","site_admin":false},"repo":{"id":66824916,"name":"article-api","full_name":"NDLANO/article-api","owner":{"login":"NDLANO","id":20052513,"avatar_url":"https://avatars.githubusercontent.com/u/20052513?v=3","gravatar_id":"","url":"https://api.github.com/users/NDLANO","html_url":"https://github.com/NDLANO","followers_url":"https://api.github.com/users/NDLANO/followers","following_url":"https://api.github.com/users/NDLANO/following{/other_user}","gists_url":"https://api.github.com/users/NDLANO/gists{/gist_id}","starred_url":"https://api.github.com/users/NDLANO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NDLANO/subscriptions","organizations_url":"https://api.github.com/users/NDLANO/orgs","repos_url":"https://api.github.com/users/NDLANO/repos","events_url":"https://api.github.com/users/NDLANO/events{/privacy}","received_events_url":"https://api.github.com/users/NDLANO/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NDLANO/article-api","description":"API for accessing articles from NDLA","fork":false,"url":"https://api.github.com/repos/NDLANO/article-api","forks_url":"https://api.github.com/repos/NDLANO/article-api/forks","keys_url":"https://api.github.com/repos/NDLANO/article-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NDLANO/article-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NDLANO/article-api/teams","hooks_url":"https://api.github.com/repos/NDLANO/article-api/hooks","issue_events_url":"https://api.github.com/repos/NDLANO/article-api/issues/events{/number}","events_url":"https://api.github.com/repos/NDLANO/article-api/events","assignees_url":"https://api.github.com/repos/NDLANO/article-api/assignees{/user}","branches_url":"https://api.github.com/repos/NDLANO/article-api/branches{/branch}","tags_url":"https://api.github.com/repos/NDLANO/article-api/tags","blobs_url":"https://api.github.com/repos/NDLANO/article-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NDLANO/article-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NDLANO/article-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/NDLANO/article-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NDLANO/article-api/statuses/{sha}","languages_url":"https://api.github.com/repos/NDLANO/article-api/languages","stargazers_url":"https://api.github.com/repos/NDLANO/article-api/stargazers","contributors_url":"https://api.github.com/repos/NDLANO/article-api/contributors","subscribers_url":"https://api.github.com/repos/NDLANO/article-api/subscribers","subscription_url":"https://api.github.com/repos/NDLANO/article-api/subscription","commits_url":"https://api.github.com/repos/NDLANO/article-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/NDLANO/article-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/NDLANO/article-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/NDLANO/article-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/NDLANO/article-api/contents/{+path}","compare_url":"https://api.github.com/repos/NDLANO/article-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NDLANO/article-api/merges","archive_url":"https://api.github.com/repos/NDLANO/article-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NDLANO/article-api/downloads","issues_url":"https://api.github.com/repos/NDLANO/article-api/issues{/number}","pulls_url":"https://api.github.com/repos/NDLANO/article-api/pulls{/number}","milestones_url":"https://api.github.com/repos/NDLANO/article-api/milestones{/number}","notifications_url":"https://api.github.com/repos/NDLANO/article-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NDLANO/article-api/labels{/name}","releases_url":"https://api.github.com/repos/NDLANO/article-api/releases{/id}","deployments_url":"https://api.github.com/repos/NDLANO/article-api/deployments","created_at":"2016-08-29T08:17:40Z","updated_at":"2016-11-08T10:50:32Z","pushed_at":"2016-11-16T08:25:58Z","git_url":"git://github.com/NDLANO/article-api.git","ssh_url":"git@github.com:NDLANO/article-api.git","clone_url":"https://github.com/NDLANO/article-api.git","svn_url":"https://github.com/NDLANO/article-api","homepage":null,"size":789,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NDLANO/article-api/pulls/33"},"html":{"href":"https://github.com/NDLANO/article-api/pull/33"},"issue":{"href":"https://api.github.com/repos/NDLANO/article-api/issues/33"},"comments":{"href":"https://api.github.com/repos/NDLANO/article-api/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/NDLANO/article-api/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/NDLANO/article-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NDLANO/article-api/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/NDLANO/article-api/statuses/957aa24e8c3d8c71b0ca36eec669265d327201a5"}}}}
{"actor":{"display_login":"narhen"}}