{"action":"created","comment":{"url":"https://api.github.com/repos/sitn/crdppf_core/pulls/comments/30459311","id":30459311,"diff_hunk":"@@ -1362,19 +1373,21 @@ def Appendices(self):\n         self.cell(135, 6, self.translations['appendicestitlelabel'], 0, 1, 'L')\n         \n         index = 1\n-        for appendix in self.appendix_entries:\n-            self.set_font(*self.pdfconfig.textstyles['tocbold'])\n-            self.appendix_links.append(self.add_link())\n-            self.cell(15, 6, str('A'+str(index)), 0, 0, 'L')\n-            self.multi_cell(0, 6, str(appendix['title']), 0, 'L')\n-            if self.reportInfo['type'] == 'reduced' or self.reportInfo['type'] == 'reducedcertified':\n-                self.set_x(40)\n-                self.set_font(*self.pdfconfig.textstyles['tocurl'])\n-                self.set_text_color(*self.pdfconfig.urlcolor)\n-                self.multi_cell(0, 5, str(appendix['url']))\n-                self.set_text_color(*self.pdfconfig.defaultcolor)\n-\n-            index = index+1\n+        if len(self.appendix_entries) > 0:\n+            for appendix in self.appendix_entries:\n+                self.set_font(*self.pdfconfig.textstyles['tocbold'])\n+                self.appendix_links.append(self.add_link())\n+                self.cell(15, 6, str('A'+str(index)), 0, 0, 'L')\n+                self.multi_cell(0, 6, appendix['title'], 0, 'L')\n+                if self.reportInfo['type'] == 'reduced' or self.reportInfo['type'] == 'reducedcertified':\n+                    self.set_x(40)\n+                    self.set_font(*self.pdfconfig.textstyles['tocurl'])\n+                    self.set_text_color(*self.pdfconfig.urlcolor)\n+                    self.multi_cell(0, 5, str(appendix['url']))\n+                    self.set_text_color(*self.pdfconfig.defaultcolor)\n+                index = index+1","path":"crdppf/util/pdf_classes.py","position":290,"original_position":290,"commit_id":"bb2e2dfb9a9952c52e5a2ce1c42905aa743406ce","original_commit_id":"bb2e2dfb9a9952c52e5a2ce1c42905aa743406ce","user":{"login":"kalbermattenm","id":1681332,"avatar_url":"https://avatars.githubusercontent.com/u/1681332?v=3","gravatar_id":"","url":"https://api.github.com/users/kalbermattenm","html_url":"https://github.com/kalbermattenm","followers_url":"https://api.github.com/users/kalbermattenm/followers","following_url":"https://api.github.com/users/kalbermattenm/following{/other_user}","gists_url":"https://api.github.com/users/kalbermattenm/gists{/gist_id}","starred_url":"https://api.github.com/users/kalbermattenm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalbermattenm/subscriptions","organizations_url":"https://api.github.com/users/kalbermattenm/orgs","repos_url":"https://api.github.com/users/kalbermattenm/repos","events_url":"https://api.github.com/users/kalbermattenm/events{/privacy}","received_events_url":"https://api.github.com/users/kalbermattenm/received_events","type":"User","site_admin":false},"body":"`index =+ 1`","created_at":"2015-05-16T07:36:34Z","updated_at":"2015-05-16T07:36:34Z","html_url":"https://github.com/sitn/crdppf_core/pull/81#discussion_r30459311","pull_request_url":"https://api.github.com/repos/sitn/crdppf_core/pulls/81","_links":{"self":{"href":"https://api.github.com/repos/sitn/crdppf_core/pulls/comments/30459311"},"html":{"href":"https://github.com/sitn/crdppf_core/pull/81#discussion_r30459311"},"pull_request":{"href":"https://api.github.com/repos/sitn/crdppf_core/pulls/81"}}},"pull_request":{"url":"https://api.github.com/repos/sitn/crdppf_core/pulls/81","id":35342957,"html_url":"https://github.com/sitn/crdppf_core/pull/81","diff_url":"https://github.com/sitn/crdppf_core/pull/81.diff","patch_url":"https://github.com/sitn/crdppf_core/pull/81.patch","issue_url":"https://api.github.com/repos/sitn/crdppf_core/issues/81","number":81,"state":"open","locked":false,"title":"Alllegalsfix","user":{"login":"voisardf","id":4629369,"avatar_url":"https://avatars.githubusercontent.com/u/4629369?v=3","gravatar_id":"","url":"https://api.github.com/users/voisardf","html_url":"https://github.com/voisardf","followers_url":"https://api.github.com/users/voisardf/followers","following_url":"https://api.github.com/users/voisardf/following{/other_user}","gists_url":"https://api.github.com/users/voisardf/gists{/gist_id}","starred_url":"https://api.github.com/users/voisardf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voisardf/subscriptions","organizations_url":"https://api.github.com/users/voisardf/orgs","repos_url":"https://api.github.com/users/voisardf/repos","events_url":"https://api.github.com/users/voisardf/events{/privacy}","received_events_url":"https://api.github.com/users/voisardf/received_events","type":"User","site_admin":false},"body":"@kalbermattenm: Please review. I'll do some thorough testing meanwhile.\r\nThis PR fixes a lot of details regarding the way the legal documents have been filtered before.\r\n\r\n* The functionality has been adapted and simplified based on the overhaul done in the layer tree by monodo\r\n* All legal documents are now merged in one base table as defined by the 'Rahmenmodell' (reducing table counts)\r\n* Removes duplicate display of legal documents\r\n* Layout improvements\r\n* Geralizes some more parameters into vars\r\n\r\ncloses issues:\r\n* https://github.com/sitn/crdppf_core/issues/70\r\n* https://github.com/sitn/crdppf_core/issues/48\r\n","created_at":"2015-05-13T16:04:40Z","updated_at":"2015-05-16T07:36:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b098229068aceaeb30b9fb81382d7a6dc9a781d6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sitn/crdppf_core/pulls/81/commits","review_comments_url":"https://api.github.com/repos/sitn/crdppf_core/pulls/81/comments","review_comment_url":"https://api.github.com/repos/sitn/crdppf_core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sitn/crdppf_core/issues/81/comments","statuses_url":"https://api.github.com/repos/sitn/crdppf_core/statuses/bb2e2dfb9a9952c52e5a2ce1c42905aa743406ce","head":{"label":"voisardf:alllegalsfix","ref":"alllegalsfix","sha":"bb2e2dfb9a9952c52e5a2ce1c42905aa743406ce","user":{"login":"voisardf","id":4629369,"avatar_url":"https://avatars.githubusercontent.com/u/4629369?v=3","gravatar_id":"","url":"https://api.github.com/users/voisardf","html_url":"https://github.com/voisardf","followers_url":"https://api.github.com/users/voisardf/followers","following_url":"https://api.github.com/users/voisardf/following{/other_user}","gists_url":"https://api.github.com/users/voisardf/gists{/gist_id}","starred_url":"https://api.github.com/users/voisardf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voisardf/subscriptions","organizations_url":"https://api.github.com/users/voisardf/orgs","repos_url":"https://api.github.com/users/voisardf/repos","events_url":"https://api.github.com/users/voisardf/events{/privacy}","received_events_url":"https://api.github.com/users/voisardf/received_events","type":"User","site_admin":false},"repo":{"id":21819875,"name":"crdppf_core","full_name":"voisardf/crdppf_core","owner":{"login":"voisardf","id":4629369,"avatar_url":"https://avatars.githubusercontent.com/u/4629369?v=3","gravatar_id":"","url":"https://api.github.com/users/voisardf","html_url":"https://github.com/voisardf","followers_url":"https://api.github.com/users/voisardf/followers","following_url":"https://api.github.com/users/voisardf/following{/other_user}","gists_url":"https://api.github.com/users/voisardf/gists{/gist_id}","starred_url":"https://api.github.com/users/voisardf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voisardf/subscriptions","organizations_url":"https://api.github.com/users/voisardf/orgs","repos_url":"https://api.github.com/users/voisardf/repos","events_url":"https://api.github.com/users/voisardf/events{/privacy}","received_events_url":"https://api.github.com/users/voisardf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/voisardf/crdppf_core","description":"Core / generic parts of the CRDPPF project","fork":true,"url":"https://api.github.com/repos/voisardf/crdppf_core","forks_url":"https://api.github.com/repos/voisardf/crdppf_core/forks","keys_url":"https://api.github.com/repos/voisardf/crdppf_core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/voisardf/crdppf_core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/voisardf/crdppf_core/teams","hooks_url":"https://api.github.com/repos/voisardf/crdppf_core/hooks","issue_events_url":"https://api.github.com/repos/voisardf/crdppf_core/issues/events{/number}","events_url":"https://api.github.com/repos/voisardf/crdppf_core/events","assignees_url":"https://api.github.com/repos/voisardf/crdppf_core/assignees{/user}","branches_url":"https://api.github.com/repos/voisardf/crdppf_core/branches{/branch}","tags_url":"https://api.github.com/repos/voisardf/crdppf_core/tags","blobs_url":"https://api.github.com/repos/voisardf/crdppf_core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/voisardf/crdppf_core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/voisardf/crdppf_core/git/refs{/sha}","trees_url":"https://api.github.com/repos/voisardf/crdppf_core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/voisardf/crdppf_core/statuses/{sha}","languages_url":"https://api.github.com/repos/voisardf/crdppf_core/languages","stargazers_url":"https://api.github.com/repos/voisardf/crdppf_core/stargazers","contributors_url":"https://api.github.com/repos/voisardf/crdppf_core/contributors","subscribers_url":"https://api.github.com/repos/voisardf/crdppf_core/subscribers","subscription_url":"https://api.github.com/repos/voisardf/crdppf_core/subscription","commits_url":"https://api.github.com/repos/voisardf/crdppf_core/commits{/sha}","git_commits_url":"https://api.github.com/repos/voisardf/crdppf_core/git/commits{/sha}","comments_url":"https://api.github.com/repos/voisardf/crdppf_core/comments{/number}","issue_comment_url":"https://api.github.com/repos/voisardf/crdppf_core/issues/comments{/number}","contents_url":"https://api.github.com/repos/voisardf/crdppf_core/contents/{+path}","compare_url":"https://api.github.com/repos/voisardf/crdppf_core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/voisardf/crdppf_core/merges","archive_url":"https://api.github.com/repos/voisardf/crdppf_core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/voisardf/crdppf_core/downloads","issues_url":"https://api.github.com/repos/voisardf/crdppf_core/issues{/number}","pulls_url":"https://api.github.com/repos/voisardf/crdppf_core/pulls{/number}","milestones_url":"https://api.github.com/repos/voisardf/crdppf_core/milestones{/number}","notifications_url":"https://api.github.com/repos/voisardf/crdppf_core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/voisardf/crdppf_core/labels{/name}","releases_url":"https://api.github.com/repos/voisardf/crdppf_core/releases{/id}","created_at":"2014-07-14T13:10:26Z","updated_at":"2014-07-14T13:23:12Z","pushed_at":"2015-05-13T15:24:49Z","git_url":"git://github.com/voisardf/crdppf_core.git","ssh_url":"git@github.com:voisardf/crdppf_core.git","clone_url":"https://github.com/voisardf/crdppf_core.git","svn_url":"https://github.com/voisardf/crdppf_core","homepage":null,"size":20470,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"sitn:master","ref":"master","sha":"2a4cdde712946bccf8af1ae10d274a556e81f35e","user":{"login":"sitn","id":4532493,"avatar_url":"https://avatars.githubusercontent.com/u/4532493?v=3","gravatar_id":"","url":"https://api.github.com/users/sitn","html_url":"https://github.com/sitn","followers_url":"https://api.github.com/users/sitn/followers","following_url":"https://api.github.com/users/sitn/following{/other_user}","gists_url":"https://api.github.com/users/sitn/gists{/gist_id}","starred_url":"https://api.github.com/users/sitn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sitn/subscriptions","organizations_url":"https://api.github.com/users/sitn/orgs","repos_url":"https://api.github.com/users/sitn/repos","events_url":"https://api.github.com/users/sitn/events{/privacy}","received_events_url":"https://api.github.com/users/sitn/received_events","type":"Organization","site_admin":false},"repo":{"id":21165948,"name":"crdppf_core","full_name":"sitn/crdppf_core","owner":{"login":"sitn","id":4532493,"avatar_url":"https://avatars.githubusercontent.com/u/4532493?v=3","gravatar_id":"","url":"https://api.github.com/users/sitn","html_url":"https://github.com/sitn","followers_url":"https://api.github.com/users/sitn/followers","following_url":"https://api.github.com/users/sitn/following{/other_user}","gists_url":"https://api.github.com/users/sitn/gists{/gist_id}","starred_url":"https://api.github.com/users/sitn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sitn/subscriptions","organizations_url":"https://api.github.com/users/sitn/orgs","repos_url":"https://api.github.com/users/sitn/repos","events_url":"https://api.github.com/users/sitn/events{/privacy}","received_events_url":"https://api.github.com/users/sitn/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sitn/crdppf_core","description":"Core / generic parts of the CRDPPF project","fork":false,"url":"https://api.github.com/repos/sitn/crdppf_core","forks_url":"https://api.github.com/repos/sitn/crdppf_core/forks","keys_url":"https://api.github.com/repos/sitn/crdppf_core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sitn/crdppf_core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sitn/crdppf_core/teams","hooks_url":"https://api.github.com/repos/sitn/crdppf_core/hooks","issue_events_url":"https://api.github.com/repos/sitn/crdppf_core/issues/events{/number}","events_url":"https://api.github.com/repos/sitn/crdppf_core/events","assignees_url":"https://api.github.com/repos/sitn/crdppf_core/assignees{/user}","branches_url":"https://api.github.com/repos/sitn/crdppf_core/branches{/branch}","tags_url":"https://api.github.com/repos/sitn/crdppf_core/tags","blobs_url":"https://api.github.com/repos/sitn/crdppf_core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sitn/crdppf_core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sitn/crdppf_core/git/refs{/sha}","trees_url":"https://api.github.com/repos/sitn/crdppf_core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sitn/crdppf_core/statuses/{sha}","languages_url":"https://api.github.com/repos/sitn/crdppf_core/languages","stargazers_url":"https://api.github.com/repos/sitn/crdppf_core/stargazers","contributors_url":"https://api.github.com/repos/sitn/crdppf_core/contributors","subscribers_url":"https://api.github.com/repos/sitn/crdppf_core/subscribers","subscription_url":"https://api.github.com/repos/sitn/crdppf_core/subscription","commits_url":"https://api.github.com/repos/sitn/crdppf_core/commits{/sha}","git_commits_url":"https://api.github.com/repos/sitn/crdppf_core/git/commits{/sha}","comments_url":"https://api.github.com/repos/sitn/crdppf_core/comments{/number}","issue_comment_url":"https://api.github.com/repos/sitn/crdppf_core/issues/comments{/number}","contents_url":"https://api.github.com/repos/sitn/crdppf_core/contents/{+path}","compare_url":"https://api.github.com/repos/sitn/crdppf_core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sitn/crdppf_core/merges","archive_url":"https://api.github.com/repos/sitn/crdppf_core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sitn/crdppf_core/downloads","issues_url":"https://api.github.com/repos/sitn/crdppf_core/issues{/number}","pulls_url":"https://api.github.com/repos/sitn/crdppf_core/pulls{/number}","milestones_url":"https://api.github.com/repos/sitn/crdppf_core/milestones{/number}","notifications_url":"https://api.github.com/repos/sitn/crdppf_core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sitn/crdppf_core/labels{/name}","releases_url":"https://api.github.com/repos/sitn/crdppf_core/releases{/id}","created_at":"2014-06-24T13:41:58Z","updated_at":"2015-04-15T13:32:13Z","pushed_at":"2015-05-13T16:04:40Z","git_url":"git://github.com/sitn/crdppf_core.git","ssh_url":"git@github.com:sitn/crdppf_core.git","clone_url":"https://github.com/sitn/crdppf_core.git","svn_url":"https://github.com/sitn/crdppf_core","homepage":null,"size":154919,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":20,"forks":3,"open_issues":20,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sitn/crdppf_core/pulls/81"},"html":{"href":"https://github.com/sitn/crdppf_core/pull/81"},"issue":{"href":"https://api.github.com/repos/sitn/crdppf_core/issues/81"},"comments":{"href":"https://api.github.com/repos/sitn/crdppf_core/issues/81/comments"},"review_comments":{"href":"https://api.github.com/repos/sitn/crdppf_core/pulls/81/comments"},"review_comment":{"href":"https://api.github.com/repos/sitn/crdppf_core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sitn/crdppf_core/pulls/81/commits"},"statuses":{"href":"https://api.github.com/repos/sitn/crdppf_core/statuses/bb2e2dfb9a9952c52e5a2ce1c42905aa743406ce"}}}}