{"action":"closed","number":3,"pull_request":{"url":"https://api.github.com/repos/apache/poi/pulls/3","id":6266393,"html_url":"https://github.com/apache/poi/pull/3","diff_url":"https://github.com/apache/poi/pull/3.diff","patch_url":"https://github.com/apache/poi/pull/3.patch","issue_url":"https://api.github.com/repos/apache/poi/issues/3","number":3,"state":"closed","locked":false,"title":"fix for information loss on footnotes/endnotes within XWPFRun.toString","user":{"login":"akhikhl","id":4534412,"avatar_url":"https://avatars.githubusercontent.com/u/4534412?v=3","gravatar_id":"","url":"https://api.github.com/users/akhikhl","html_url":"https://github.com/akhikhl","followers_url":"https://api.github.com/users/akhikhl/followers","following_url":"https://api.github.com/users/akhikhl/following{/other_user}","gists_url":"https://api.github.com/users/akhikhl/gists{/gist_id}","starred_url":"https://api.github.com/users/akhikhl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akhikhl/subscriptions","organizations_url":"https://api.github.com/users/akhikhl/orgs","repos_url":"https://api.github.com/users/akhikhl/repos","events_url":"https://api.github.com/users/akhikhl/events{/privacy}","received_events_url":"https://api.github.com/users/akhikhl/received_events","type":"User","site_admin":false},"body":"Dear Apache POI Team,\r\n\r\nPlease consider a problem: whenever MS-Word document with footnotes/endnotes is being parsed with XWPFWordExtractor, information on the location of footnote/endnote references is lost. This information loss is clearly observed in, for example, Apache Tika output.\r\n\r\nTo reproduce a problem, please insert the following code to TestXWPFWordExtractor.testFootnotes:\r\n\r\n        java.io.FileWriter w = new java.io.FileWriter(new java.io.File(System.getProperty(\"user.home\"), \"footnotes.output.txt\"));\r\n        try {\r\n          w.write(extractor.getText());\r\n        } finally {\r\n          w.close();\r\n        }\r\n\r\nthen run tests and inspect the content of \"footnotes.output.txt\" - it contains \"Eto ochen prostoy text so snoskoy\", where between \"prostoy\" and \"text\" there should be a footnote reference (and it is lost).\r\n\r\nSOLUTION:\r\nI suggest to introduce additional markup like [footnoteRef:num], [endnoteRef:num], which will allow applications to correctly render footnote references.\r\n\r\nPlease, see commit details.","created_at":"2013-06-12T08:36:00Z","updated_at":"2016-01-04T20:43:24Z","closed_at":"2016-01-04T20:43:24Z","merged_at":null,"merge_commit_sha":"db1eaa4a04b74feffd5ec2807348176d7a6b924a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/poi/pulls/3/commits","review_comments_url":"https://api.github.com/repos/apache/poi/pulls/3/comments","review_comment_url":"https://api.github.com/repos/apache/poi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/poi/issues/3/comments","statuses_url":"https://api.github.com/repos/apache/poi/statuses/a6dfe98f5f31454a5c04d60ca1012a3c1cb4e3ca","head":{"label":"akhikhl:enhanced-footnote-support","ref":"enhanced-footnote-support","sha":"a6dfe98f5f31454a5c04d60ca1012a3c1cb4e3ca","user":{"login":"akhikhl","id":4534412,"avatar_url":"https://avatars.githubusercontent.com/u/4534412?v=3","gravatar_id":"","url":"https://api.github.com/users/akhikhl","html_url":"https://github.com/akhikhl","followers_url":"https://api.github.com/users/akhikhl/followers","following_url":"https://api.github.com/users/akhikhl/following{/other_user}","gists_url":"https://api.github.com/users/akhikhl/gists{/gist_id}","starred_url":"https://api.github.com/users/akhikhl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akhikhl/subscriptions","organizations_url":"https://api.github.com/users/akhikhl/orgs","repos_url":"https://api.github.com/users/akhikhl/repos","events_url":"https://api.github.com/users/akhikhl/events{/privacy}","received_events_url":"https://api.github.com/users/akhikhl/received_events","type":"User","site_admin":false},"repo":{"id":10598237,"name":"poi","full_name":"akhikhl/poi","owner":{"login":"akhikhl","id":4534412,"avatar_url":"https://avatars.githubusercontent.com/u/4534412?v=3","gravatar_id":"","url":"https://api.github.com/users/akhikhl","html_url":"https://github.com/akhikhl","followers_url":"https://api.github.com/users/akhikhl/followers","following_url":"https://api.github.com/users/akhikhl/following{/other_user}","gists_url":"https://api.github.com/users/akhikhl/gists{/gist_id}","starred_url":"https://api.github.com/users/akhikhl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akhikhl/subscriptions","organizations_url":"https://api.github.com/users/akhikhl/orgs","repos_url":"https://api.github.com/users/akhikhl/repos","events_url":"https://api.github.com/users/akhikhl/events{/privacy}","received_events_url":"https://api.github.com/users/akhikhl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/akhikhl/poi","description":"Mirror of Apache POI","fork":true,"url":"https://api.github.com/repos/akhikhl/poi","forks_url":"https://api.github.com/repos/akhikhl/poi/forks","keys_url":"https://api.github.com/repos/akhikhl/poi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akhikhl/poi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akhikhl/poi/teams","hooks_url":"https://api.github.com/repos/akhikhl/poi/hooks","issue_events_url":"https://api.github.com/repos/akhikhl/poi/issues/events{/number}","events_url":"https://api.github.com/repos/akhikhl/poi/events","assignees_url":"https://api.github.com/repos/akhikhl/poi/assignees{/user}","branches_url":"https://api.github.com/repos/akhikhl/poi/branches{/branch}","tags_url":"https://api.github.com/repos/akhikhl/poi/tags","blobs_url":"https://api.github.com/repos/akhikhl/poi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akhikhl/poi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akhikhl/poi/git/refs{/sha}","trees_url":"https://api.github.com/repos/akhikhl/poi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akhikhl/poi/statuses/{sha}","languages_url":"https://api.github.com/repos/akhikhl/poi/languages","stargazers_url":"https://api.github.com/repos/akhikhl/poi/stargazers","contributors_url":"https://api.github.com/repos/akhikhl/poi/contributors","subscribers_url":"https://api.github.com/repos/akhikhl/poi/subscribers","subscription_url":"https://api.github.com/repos/akhikhl/poi/subscription","commits_url":"https://api.github.com/repos/akhikhl/poi/commits{/sha}","git_commits_url":"https://api.github.com/repos/akhikhl/poi/git/commits{/sha}","comments_url":"https://api.github.com/repos/akhikhl/poi/comments{/number}","issue_comment_url":"https://api.github.com/repos/akhikhl/poi/issues/comments{/number}","contents_url":"https://api.github.com/repos/akhikhl/poi/contents/{+path}","compare_url":"https://api.github.com/repos/akhikhl/poi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akhikhl/poi/merges","archive_url":"https://api.github.com/repos/akhikhl/poi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akhikhl/poi/downloads","issues_url":"https://api.github.com/repos/akhikhl/poi/issues{/number}","pulls_url":"https://api.github.com/repos/akhikhl/poi/pulls{/number}","milestones_url":"https://api.github.com/repos/akhikhl/poi/milestones{/number}","notifications_url":"https://api.github.com/repos/akhikhl/poi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akhikhl/poi/labels{/name}","releases_url":"https://api.github.com/repos/akhikhl/poi/releases{/id}","created_at":"2013-06-10T10:46:36Z","updated_at":"2014-02-23T23:24:06Z","pushed_at":"2013-06-12T11:39:30Z","git_url":"git://github.com/akhikhl/poi.git","ssh_url":"git@github.com:akhikhl/poi.git","clone_url":"https://github.com/akhikhl/poi.git","svn_url":"https://github.com/akhikhl/poi","homepage":null,"size":80863,"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":"startext"}},"base":{"label":"apache:trunk","ref":"trunk","sha":"09c79ffed4e5048860d26e19a85aaecb4d5a5edf","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":206368,"name":"poi","full_name":"apache/poi","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/poi","description":"Mirror of Apache POI","fork":false,"url":"https://api.github.com/repos/apache/poi","forks_url":"https://api.github.com/repos/apache/poi/forks","keys_url":"https://api.github.com/repos/apache/poi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/poi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/poi/teams","hooks_url":"https://api.github.com/repos/apache/poi/hooks","issue_events_url":"https://api.github.com/repos/apache/poi/issues/events{/number}","events_url":"https://api.github.com/repos/apache/poi/events","assignees_url":"https://api.github.com/repos/apache/poi/assignees{/user}","branches_url":"https://api.github.com/repos/apache/poi/branches{/branch}","tags_url":"https://api.github.com/repos/apache/poi/tags","blobs_url":"https://api.github.com/repos/apache/poi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/poi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/poi/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/poi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/poi/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/poi/languages","stargazers_url":"https://api.github.com/repos/apache/poi/stargazers","contributors_url":"https://api.github.com/repos/apache/poi/contributors","subscribers_url":"https://api.github.com/repos/apache/poi/subscribers","subscription_url":"https://api.github.com/repos/apache/poi/subscription","commits_url":"https://api.github.com/repos/apache/poi/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/poi/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/poi/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/poi/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/poi/contents/{+path}","compare_url":"https://api.github.com/repos/apache/poi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/poi/merges","archive_url":"https://api.github.com/repos/apache/poi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/poi/downloads","issues_url":"https://api.github.com/repos/apache/poi/issues{/number}","pulls_url":"https://api.github.com/repos/apache/poi/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/poi/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/poi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/poi/labels{/name}","releases_url":"https://api.github.com/repos/apache/poi/releases{/id}","created_at":"2009-05-21T01:15:15Z","updated_at":"2016-01-01T05:02:48Z","pushed_at":"2016-01-04T20:43:23Z","git_url":"git://github.com/apache/poi.git","ssh_url":"git@github.com:apache/poi.git","clone_url":"https://github.com/apache/poi.git","svn_url":"https://github.com/apache/poi","homepage":null,"size":120756,"stargazers_count":130,"watchers_count":130,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":118,"mirror_url":"git://git.apache.org/poi.git","open_issues_count":9,"forks":118,"open_issues":9,"watchers":130,"default_branch":"trunk"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/poi/pulls/3"},"html":{"href":"https://github.com/apache/poi/pull/3"},"issue":{"href":"https://api.github.com/repos/apache/poi/issues/3"},"comments":{"href":"https://api.github.com/repos/apache/poi/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/poi/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/poi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/poi/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/apache/poi/statuses/a6dfe98f5f31454a5c04d60ca1012a3c1cb4e3ca"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":1,"review_comments":0,"commits":1,"additions":13,"deletions":4,"changed_files":2}}