{"action":"created","issue":{"url":"https://api.github.com/repos/Laverna/laverna/issues/399","repository_url":"https://api.github.com/repos/Laverna/laverna","labels_url":"https://api.github.com/repos/Laverna/laverna/issues/399/labels{/name}","comments_url":"https://api.github.com/repos/Laverna/laverna/issues/399/comments","events_url":"https://api.github.com/repos/Laverna/laverna/issues/399/events","html_url":"https://github.com/Laverna/laverna/issues/399","id":134626711,"node_id":"MDU6SXNzdWUxMzQ2MjY3MTE=","number":399,"title":"Weird Rendering for Code","user":{"login":"GaryFurash","id":15006133,"node_id":"MDQ6VXNlcjE1MDA2MTMz","avatar_url":"https://avatars0.githubusercontent.com/u/15006133?v=4","gravatar_id":"","url":"https://api.github.com/users/GaryFurash","html_url":"https://github.com/GaryFurash","followers_url":"https://api.github.com/users/GaryFurash/followers","following_url":"https://api.github.com/users/GaryFurash/following{/other_user}","gists_url":"https://api.github.com/users/GaryFurash/gists{/gist_id}","starred_url":"https://api.github.com/users/GaryFurash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GaryFurash/subscriptions","organizations_url":"https://api.github.com/users/GaryFurash/orgs","repos_url":"https://api.github.com/users/GaryFurash/repos","events_url":"https://api.github.com/users/GaryFurash/events{/privacy}","received_events_url":"https://api.github.com/users/GaryFurash/received_events","type":"User","site_admin":false},"labels":[{"id":76113337,"node_id":"MDU6TGFiZWw3NjExMzMzNw==","url":"https://api.github.com/repos/Laverna/laverna/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-02-18T16:22:25Z","updated_at":"2018-06-07T15:07:25Z","closed_at":null,"author_association":"NONE","body":"The following code looks pretty funky (see attachment)\n\n```\n\n       /* addSource() is overloaded, so you have to find the correct method through reflection */\n       Local JavaObject &addSourceMethod = GetJavaClass(\"java.lang.Class\").forName(\"org.apache.pdfbox.multipdf.PDFMergerUtility\", False, &classLoader.getSystemClassLoader()).getMethod(\"addSource\", CreateJavaObject(\"java.lang.Class[]\", GetJavaClass(\"java.lang.Class\").forName(\"java.io.File\")));\n\n       /* you have to pass a generic object to reflection, instead of class File directly */\n       &addSourceMethod.invoke(&merger, CreateJavaObject(\"java.lang.Object[]\", CreateJavaObject(\"java.io.File\", \"E:\\temp\\file1.pdf\")));\n       &addSourceMethod.invoke(&merger, CreateJavaObject(\"java.lang.Object[]\", CreateJavaObject(\"java.io.File\", \"E:\\temp\\file2.pdf\")));\n```\n\nLooks like this (see all the weird span / label / checkbox things\n\n /\\* addSource() is overloaded, so you have to find the correct method through reflection */\n   Local JavaObject &addSourceMethod = GetJavaClass(\"java.lang.Class\").forName(\"org.apache.pdfbox.multipdf.PDFMergerUtility\", False, &classLoader.getSystemClassLoader()).getMethod(\"addSource\", CreateJavaObject(\"java.lang.Class<label class=\"task checkbox\"><input data-task=\"1\" type=\"checkbox\" class=\"checkbox--input\" /><svg class=\"checkbox--svg\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\"><path class=\"checkbox--path\" d=\"M16.667,62.167c3.109,5.55,7.217,10.591,10.926,15.75 c2.614,3.636,5.149,7.519,8.161,10.853c-0.046-0.051,1.959,2.414,2.692,2.343c0.895-0.088,6.958-8.511,6.014-7.3 c5.997-7.695,11.68-15.463,16.931-23.696c6.393-10.025,12.235-20.373,18.104-30.707C82.004,24.988,84.802,20.601,87,16\"></path></svg><span class=\"checkbox--text\">\", GetJavaClass(\"java.lang.Class\").forName(\"java.io.File\")));</span></label>\n\n   /\\* you have to pass a generic object to reflection, instead of class File directly */\n   &addSourceMethod.invoke(&merger, CreateJavaObject(\"java.lang.Object<label class=\"task checkbox\"><input data-task=\"2\" type=\"checkbox\" class=\"checkbox--input\" /><svg class=\"checkbox--svg\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\"><path class=\"checkbox--path\" d=\"M16.667,62.167c3.109,5.55,7.217,10.591,10.926,15.75 c2.614,3.636,5.149,7.519,8.161,10.853c-0.046-0.051,1.959,2.414,2.692,2.343c0.895-0.088,6.958-8.511,6.014-7.3 c5.997-7.695,11.68-15.463,16.931-23.696c6.393-10.025,12.235-20.373,18.104-30.707C82.004,24.988,84.802,20.601,87,16\"></path></svg><span class=\"checkbox--text\">\", CreateJavaObject(\"java.io.File\", \"E:\\temp\\file1.pdf\")));</span></label>\n   &addSourceMethod.invoke(&merger, CreateJavaObject(\"java.lang.Object<label class=\"task checkbox\"><input data-task=\"3\" type=\"checkbox\" class=\"checkbox--input\" /><svg class=\"checkbox--svg\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\"><path class=\"checkbox--path\" d=\"M16.667,62.167c3.109,5.55,7.217,10.591,10.926,15.75 c2.614,3.636,5.149,7.519,8.161,10.853c-0.046-0.051,1.959,2.414,2.692,2.343c0.895-0.088,6.958-8.511,6.014-7.3 c5.997-7.695,11.68-15.463,16.931-23.696c6.393-10.025,12.235-20.373,18.104-30.707C82.004,24.988,84.802,20.601,87,16\"></path></svg><span class=\"checkbox--text\">\", CreateJavaObject(\"java.io.File\", \"E:\\temp\\file2.pdf\")));</span></label>\n"},"comment":{"url":"https://api.github.com/repos/Laverna/laverna/issues/comments/395455297","html_url":"https://github.com/Laverna/laverna/issues/399#issuecomment-395455297","issue_url":"https://api.github.com/repos/Laverna/laverna/issues/399","id":395455297,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTQ1NTI5Nw==","user":{"login":"dseebacher","id":1230743,"node_id":"MDQ6VXNlcjEyMzA3NDM=","avatar_url":"https://avatars3.githubusercontent.com/u/1230743?v=4","gravatar_id":"","url":"https://api.github.com/users/dseebacher","html_url":"https://github.com/dseebacher","followers_url":"https://api.github.com/users/dseebacher/followers","following_url":"https://api.github.com/users/dseebacher/following{/other_user}","gists_url":"https://api.github.com/users/dseebacher/gists{/gist_id}","starred_url":"https://api.github.com/users/dseebacher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dseebacher/subscriptions","organizations_url":"https://api.github.com/users/dseebacher/orgs","repos_url":"https://api.github.com/users/dseebacher/repos","events_url":"https://api.github.com/users/dseebacher/events{/privacy}","received_events_url":"https://api.github.com/users/dseebacher/received_events","type":"User","site_admin":false},"created_at":"2018-06-07T15:07:24Z","updated_at":"2018-06-07T15:07:24Z","author_association":"NONE","body":"Works fine here, was probably fixed... "}}
{"actor":{"display_login":"dseebacher"}}