{"action":"created","comment":{"url":"https://api.github.com/repos/xwiki/xwiki-platform/pulls/comments/40405415","id":40405415,"diff_hunk":"@@ -0,0 +1,152 @@\n+/*\n+ * See the NOTICE file distributed with this work for additional\n+ * information regarding copyright ownership.\n+ *\n+ * This is free software; you can redistribute it and/or modify it\n+ * under the terms of the GNU Lesser General Public License as\n+ * published by the Free Software Foundation; either version 2.1 of\n+ * the License, or (at your option) any later version.\n+ *\n+ * This software is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n+ * Lesser General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU Lesser General Public\n+ * License along with this software; if not, write to the Free\n+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n+ */\n+package org.xwiki.officeimporter.internal.filter;\n+\n+import java.util.Map;\n+import java.util.List;\n+import java.util.ArrayList;\n+\n+import javax.inject.Named;\n+import javax.inject.Singleton;\n+\n+import org.w3c.dom.Document;\n+import org.w3c.dom.Element;\n+import org.w3c.dom.Node;\n+import org.w3c.dom.NodeList;\n+\n+import org.xwiki.component.annotation.Component;\n+import org.xwiki.xml.html.filter.AbstractHTMLFilter;\n+\n+\n+/**\n+ * Sometimes the heading becomes wrapped in an ordered list structure such as this during import:\n+ * 1.\n+ * \n+ * 11. \n+ * 111. \n+ * 1111. \n+ * 11111. (((\n+ * ===== Heading text =====\n+ * )))\n+ *\n+ * This filter removes these structures.\n+ *\n+ * @version $Id$\n+ * @since 6.4.6","path":"xwiki-platform-core/xwiki-platform-office/xwiki-platform-office-importer/src/main/java/org/xwiki/officeimporter/internal/filter/HeadingInOrderedListFilter.java","position":52,"original_position":52,"commit_id":"6c9dfdf0d9dce71375f21ccf7282c413fccf9c1a","original_commit_id":"6c9dfdf0d9dce71375f21ccf7282c413fccf9c1a","user":{"login":"mflorea","id":652632,"avatar_url":"https://avatars.githubusercontent.com/u/652632?v=3","gravatar_id":"","url":"https://api.github.com/users/mflorea","html_url":"https://github.com/mflorea","followers_url":"https://api.github.com/users/mflorea/followers","following_url":"https://api.github.com/users/mflorea/following{/other_user}","gists_url":"https://api.github.com/users/mflorea/gists{/gist_id}","starred_url":"https://api.github.com/users/mflorea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mflorea/subscriptions","organizations_url":"https://api.github.com/users/mflorea/orgs","repos_url":"https://api.github.com/users/mflorea/repos","events_url":"https://api.github.com/users/mflorea/events{/privacy}","received_events_url":"https://api.github.com/users/mflorea/received_events","type":"User","site_admin":false},"body":"You made the PR for master branch, so it should be 7.3M1.","created_at":"2015-09-25T07:29:30Z","updated_at":"2015-09-25T07:29:30Z","html_url":"https://github.com/xwiki/xwiki-platform/pull/440#discussion_r40405415","pull_request_url":"https://api.github.com/repos/xwiki/xwiki-platform/pulls/440","_links":{"self":{"href":"https://api.github.com/repos/xwiki/xwiki-platform/pulls/comments/40405415"},"html":{"href":"https://github.com/xwiki/xwiki-platform/pull/440#discussion_r40405415"},"pull_request":{"href":"https://api.github.com/repos/xwiki/xwiki-platform/pulls/440"}}},"pull_request":{"url":"https://api.github.com/repos/xwiki/xwiki-platform/pulls/440","id":45948857,"html_url":"https://github.com/xwiki/xwiki-platform/pull/440","diff_url":"https://github.com/xwiki/xwiki-platform/pull/440.diff","patch_url":"https://github.com/xwiki/xwiki-platform/pull/440.patch","issue_url":"https://api.github.com/repos/xwiki/xwiki-platform/issues/440","number":440,"state":"open","locked":false,"title":"XWIKI-12614: Headings wrapped in ordered lists during import with Lib…","user":{"login":"AndreasJonsson","id":676632,"avatar_url":"https://avatars.githubusercontent.com/u/676632?v=3","gravatar_id":"","url":"https://api.github.com/users/AndreasJonsson","html_url":"https://github.com/AndreasJonsson","followers_url":"https://api.github.com/users/AndreasJonsson/followers","following_url":"https://api.github.com/users/AndreasJonsson/following{/other_user}","gists_url":"https://api.github.com/users/AndreasJonsson/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreasJonsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreasJonsson/subscriptions","organizations_url":"https://api.github.com/users/AndreasJonsson/orgs","repos_url":"https://api.github.com/users/AndreasJonsson/repos","events_url":"https://api.github.com/users/AndreasJonsson/events{/privacy}","received_events_url":"https://api.github.com/users/AndreasJonsson/received_events","type":"User","site_admin":false},"body":"…reOffice 4.3.3\r\n\r\nThis patch adds an html cleaning filter for the office importer to remove ordered lists produced around headings.\r\n\r\n","created_at":"2015-09-24T20:57:07Z","updated_at":"2015-09-25T07:29:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d75aef6f0b09e13bb0d04d304aee4569c8bc7bc1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/xwiki/xwiki-platform/pulls/440/commits","review_comments_url":"https://api.github.com/repos/xwiki/xwiki-platform/pulls/440/comments","review_comment_url":"https://api.github.com/repos/xwiki/xwiki-platform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xwiki/xwiki-platform/issues/440/comments","statuses_url":"https://api.github.com/repos/xwiki/xwiki-platform/statuses/6c9dfdf0d9dce71375f21ccf7282c413fccf9c1a","head":{"label":"AndreasJonsson:master","ref":"master","sha":"6c9dfdf0d9dce71375f21ccf7282c413fccf9c1a","user":{"login":"AndreasJonsson","id":676632,"avatar_url":"https://avatars.githubusercontent.com/u/676632?v=3","gravatar_id":"","url":"https://api.github.com/users/AndreasJonsson","html_url":"https://github.com/AndreasJonsson","followers_url":"https://api.github.com/users/AndreasJonsson/followers","following_url":"https://api.github.com/users/AndreasJonsson/following{/other_user}","gists_url":"https://api.github.com/users/AndreasJonsson/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreasJonsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreasJonsson/subscriptions","organizations_url":"https://api.github.com/users/AndreasJonsson/orgs","repos_url":"https://api.github.com/users/AndreasJonsson/repos","events_url":"https://api.github.com/users/AndreasJonsson/events{/privacy}","received_events_url":"https://api.github.com/users/AndreasJonsson/received_events","type":"User","site_admin":false},"repo":{"id":43064720,"name":"xwiki-platform","full_name":"AndreasJonsson/xwiki-platform","owner":{"login":"AndreasJonsson","id":676632,"avatar_url":"https://avatars.githubusercontent.com/u/676632?v=3","gravatar_id":"","url":"https://api.github.com/users/AndreasJonsson","html_url":"https://github.com/AndreasJonsson","followers_url":"https://api.github.com/users/AndreasJonsson/followers","following_url":"https://api.github.com/users/AndreasJonsson/following{/other_user}","gists_url":"https://api.github.com/users/AndreasJonsson/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreasJonsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreasJonsson/subscriptions","organizations_url":"https://api.github.com/users/AndreasJonsson/orgs","repos_url":"https://api.github.com/users/AndreasJonsson/repos","events_url":"https://api.github.com/users/AndreasJonsson/events{/privacy}","received_events_url":"https://api.github.com/users/AndreasJonsson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AndreasJonsson/xwiki-platform","description":"The XWiki platform","fork":true,"url":"https://api.github.com/repos/AndreasJonsson/xwiki-platform","forks_url":"https://api.github.com/repos/AndreasJonsson/xwiki-platform/forks","keys_url":"https://api.github.com/repos/AndreasJonsson/xwiki-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AndreasJonsson/xwiki-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AndreasJonsson/xwiki-platform/teams","hooks_url":"https://api.github.com/repos/AndreasJonsson/xwiki-platform/hooks","issue_events_url":"https://api.github.com/repos/AndreasJonsson/xwiki-platform/issues/events{/number}","events_url":"https://api.github.com/repos/AndreasJonsson/xwiki-platform/events","assignees_url":"https://api.github.com/repos/AndreasJonsson/xwiki-platform/assignees{/user}","branches_url":"https://api.github.com/repos/AndreasJonsson/xwiki-platform/branches{/branch}","tags_url":"https://api.github.com/repos/AndreasJonsson/xwiki-platform/tags","blobs_url":"https://api.github.com/repos/AndreasJonsson/xwiki-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AndreasJonsson/xwiki-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AndreasJonsson/xwiki-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/AndreasJonsson/xwiki-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AndreasJonsson/xwiki-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/AndreasJonsson/xwiki-platform/languages","stargazers_url":"https://api.github.com/repos/AndreasJonsson/xwiki-platform/stargazers","contributors_url":"https://api.github.com/repos/AndreasJonsson/xwiki-platform/contributors","subscribers_url":"https://api.github.com/repos/AndreasJonsson/xwiki-platform/subscribers","subscription_url":"https://api.github.com/repos/AndreasJonsson/xwiki-platform/subscription","commits_url":"https://api.github.com/repos/AndreasJonsson/xwiki-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/AndreasJonsson/xwiki-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/AndreasJonsson/xwiki-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/AndreasJonsson/xwiki-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/AndreasJonsson/xwiki-platform/contents/{+path}","compare_url":"https://api.github.com/repos/AndreasJonsson/xwiki-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AndreasJonsson/xwiki-platform/merges","archive_url":"https://api.github.com/repos/AndreasJonsson/xwiki-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AndreasJonsson/xwiki-platform/downloads","issues_url":"https://api.github.com/repos/AndreasJonsson/xwiki-platform/issues{/number}","pulls_url":"https://api.github.com/repos/AndreasJonsson/xwiki-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/AndreasJonsson/xwiki-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/AndreasJonsson/xwiki-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AndreasJonsson/xwiki-platform/labels{/name}","releases_url":"https://api.github.com/repos/AndreasJonsson/xwiki-platform/releases{/id}","created_at":"2015-09-24T12:13:43Z","updated_at":"2015-09-24T12:14:33Z","pushed_at":"2015-09-24T20:54:27Z","git_url":"git://github.com/AndreasJonsson/xwiki-platform.git","ssh_url":"git@github.com:AndreasJonsson/xwiki-platform.git","clone_url":"https://github.com/AndreasJonsson/xwiki-platform.git","svn_url":"https://github.com/AndreasJonsson/xwiki-platform","homepage":"http://platform.xwiki.org/","size":281736,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"xwiki:master","ref":"master","sha":"a2330496488500542f071e807a4b5056a2727cac","user":{"login":"xwiki","id":488445,"avatar_url":"https://avatars.githubusercontent.com/u/488445?v=3","gravatar_id":"","url":"https://api.github.com/users/xwiki","html_url":"https://github.com/xwiki","followers_url":"https://api.github.com/users/xwiki/followers","following_url":"https://api.github.com/users/xwiki/following{/other_user}","gists_url":"https://api.github.com/users/xwiki/gists{/gist_id}","starred_url":"https://api.github.com/users/xwiki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xwiki/subscriptions","organizations_url":"https://api.github.com/users/xwiki/orgs","repos_url":"https://api.github.com/users/xwiki/repos","events_url":"https://api.github.com/users/xwiki/events{/privacy}","received_events_url":"https://api.github.com/users/xwiki/received_events","type":"Organization","site_admin":false},"repo":{"id":1463490,"name":"xwiki-platform","full_name":"xwiki/xwiki-platform","owner":{"login":"xwiki","id":488445,"avatar_url":"https://avatars.githubusercontent.com/u/488445?v=3","gravatar_id":"","url":"https://api.github.com/users/xwiki","html_url":"https://github.com/xwiki","followers_url":"https://api.github.com/users/xwiki/followers","following_url":"https://api.github.com/users/xwiki/following{/other_user}","gists_url":"https://api.github.com/users/xwiki/gists{/gist_id}","starred_url":"https://api.github.com/users/xwiki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xwiki/subscriptions","organizations_url":"https://api.github.com/users/xwiki/orgs","repos_url":"https://api.github.com/users/xwiki/repos","events_url":"https://api.github.com/users/xwiki/events{/privacy}","received_events_url":"https://api.github.com/users/xwiki/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xwiki/xwiki-platform","description":"The XWiki platform","fork":false,"url":"https://api.github.com/repos/xwiki/xwiki-platform","forks_url":"https://api.github.com/repos/xwiki/xwiki-platform/forks","keys_url":"https://api.github.com/repos/xwiki/xwiki-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xwiki/xwiki-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xwiki/xwiki-platform/teams","hooks_url":"https://api.github.com/repos/xwiki/xwiki-platform/hooks","issue_events_url":"https://api.github.com/repos/xwiki/xwiki-platform/issues/events{/number}","events_url":"https://api.github.com/repos/xwiki/xwiki-platform/events","assignees_url":"https://api.github.com/repos/xwiki/xwiki-platform/assignees{/user}","branches_url":"https://api.github.com/repos/xwiki/xwiki-platform/branches{/branch}","tags_url":"https://api.github.com/repos/xwiki/xwiki-platform/tags","blobs_url":"https://api.github.com/repos/xwiki/xwiki-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xwiki/xwiki-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xwiki/xwiki-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/xwiki/xwiki-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xwiki/xwiki-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/xwiki/xwiki-platform/languages","stargazers_url":"https://api.github.com/repos/xwiki/xwiki-platform/stargazers","contributors_url":"https://api.github.com/repos/xwiki/xwiki-platform/contributors","subscribers_url":"https://api.github.com/repos/xwiki/xwiki-platform/subscribers","subscription_url":"https://api.github.com/repos/xwiki/xwiki-platform/subscription","commits_url":"https://api.github.com/repos/xwiki/xwiki-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/xwiki/xwiki-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/xwiki/xwiki-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/xwiki/xwiki-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/xwiki/xwiki-platform/contents/{+path}","compare_url":"https://api.github.com/repos/xwiki/xwiki-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xwiki/xwiki-platform/merges","archive_url":"https://api.github.com/repos/xwiki/xwiki-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xwiki/xwiki-platform/downloads","issues_url":"https://api.github.com/repos/xwiki/xwiki-platform/issues{/number}","pulls_url":"https://api.github.com/repos/xwiki/xwiki-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/xwiki/xwiki-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/xwiki/xwiki-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xwiki/xwiki-platform/labels{/name}","releases_url":"https://api.github.com/repos/xwiki/xwiki-platform/releases{/id}","created_at":"2011-03-10T13:26:41Z","updated_at":"2015-09-24T00:48:16Z","pushed_at":"2015-09-24T20:57:07Z","git_url":"git://github.com/xwiki/xwiki-platform.git","ssh_url":"git@github.com:xwiki/xwiki-platform.git","clone_url":"https://github.com/xwiki/xwiki-platform.git","svn_url":"https://github.com/xwiki/xwiki-platform","homepage":"http://platform.xwiki.org/","size":735395,"stargazers_count":126,"watchers_count":126,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":156,"mirror_url":null,"open_issues_count":30,"forks":156,"open_issues":30,"watchers":126,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xwiki/xwiki-platform/pulls/440"},"html":{"href":"https://github.com/xwiki/xwiki-platform/pull/440"},"issue":{"href":"https://api.github.com/repos/xwiki/xwiki-platform/issues/440"},"comments":{"href":"https://api.github.com/repos/xwiki/xwiki-platform/issues/440/comments"},"review_comments":{"href":"https://api.github.com/repos/xwiki/xwiki-platform/pulls/440/comments"},"review_comment":{"href":"https://api.github.com/repos/xwiki/xwiki-platform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xwiki/xwiki-platform/pulls/440/commits"},"statuses":{"href":"https://api.github.com/repos/xwiki/xwiki-platform/statuses/6c9dfdf0d9dce71375f21ccf7282c413fccf9c1a"}}}}