{"action":"created","issue":{"url":"https://api.github.com/repos/htacg/tidy-html5/issues/486","repository_url":"https://api.github.com/repos/htacg/tidy-html5","labels_url":"https://api.github.com/repos/htacg/tidy-html5/issues/486/labels{/name}","comments_url":"https://api.github.com/repos/htacg/tidy-html5/issues/486/comments","events_url":"https://api.github.com/repos/htacg/tidy-html5/issues/486/events","html_url":"https://github.com/htacg/tidy-html5/issues/486","id":205264448,"number":486,"title":"indent and vertical-space issues (was With indent:yes and wrap:0, I don't want line breaks before inline elements)","user":{"login":"LWillms","id":25504742,"avatar_url":"https://avatars0.githubusercontent.com/u/25504742?v=3","gravatar_id":"","url":"https://api.github.com/users/LWillms","html_url":"https://github.com/LWillms","followers_url":"https://api.github.com/users/LWillms/followers","following_url":"https://api.github.com/users/LWillms/following{/other_user}","gists_url":"https://api.github.com/users/LWillms/gists{/gist_id}","starred_url":"https://api.github.com/users/LWillms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LWillms/subscriptions","organizations_url":"https://api.github.com/users/LWillms/orgs","repos_url":"https://api.github.com/users/LWillms/repos","events_url":"https://api.github.com/users/LWillms/events{/privacy}","received_events_url":"https://api.github.com/users/LWillms/received_events","type":"User","site_admin":false},"labels":[{"id":8461214,"url":"https://api.github.com/repos/htacg/tidy-html5/labels/Feature%20Request","name":"Feature Request","color":"02e10c","default":false},{"id":8461057,"url":"https://api.github.com/repos/htacg/tidy-html5/labels/Pretty%20Print","name":"Pretty Print","color":"eb6420","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/htacg/tidy-html5/milestones/9","html_url":"https://github.com/htacg/tidy-html5/milestone/9","labels_url":"https://api.github.com/repos/htacg/tidy-html5/milestones/9/labels","id":2291013,"number":9,"title":"5.5","description":"Headed for next release, after 5.4","creator":{"login":"geoffmcl","id":1333435,"avatar_url":"https://avatars0.githubusercontent.com/u/1333435?v=3","gravatar_id":"","url":"https://api.github.com/users/geoffmcl","html_url":"https://github.com/geoffmcl","followers_url":"https://api.github.com/users/geoffmcl/followers","following_url":"https://api.github.com/users/geoffmcl/following{/other_user}","gists_url":"https://api.github.com/users/geoffmcl/gists{/gist_id}","starred_url":"https://api.github.com/users/geoffmcl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoffmcl/subscriptions","organizations_url":"https://api.github.com/users/geoffmcl/orgs","repos_url":"https://api.github.com/users/geoffmcl/repos","events_url":"https://api.github.com/users/geoffmcl/events{/privacy}","received_events_url":"https://api.github.com/users/geoffmcl/received_events","type":"User","site_admin":false},"open_issues":26,"closed_issues":43,"state":"open","created_at":"2017-02-01T00:26:38Z","updated_at":"2017-05-31T12:58:58Z","due_on":"2017-08-15T07:00:00Z","closed_at":null},"comments":10,"created_at":"2017-02-03T20:41:44Z","updated_at":"2017-06-01T16:25:05Z","closed_at":null,"body":"This is the output of tidy 5.2 with the config options \"indent: yes\" and \"wrap: 0\": \r\n(I have cut out only the beginning of the lines via Column Mode of Ultraedit, in order not to force a line wrap...)\r\n\r\n```html\r\n`       <li>                                                       \r\n         <h2>                                                     \r\n           Erster Abschnitt: Ware und Geld                        \r\n         </h2>                                                    \r\n         <ol>                                                     \r\n           <li>                                                   \r\n             <a href=\"me23_049.htm\">Erstes Kapitel. Die Ware</a>  \r\n             <ol>                                                 \r\n               <li>                                               \r\n                 <a href=\"me23_049.htm#Kap_1_1\">Die zwei Faktoren \r\n               </li>                                              \r\n               <li>                                               \r\n                 <a href=\"me23_049.htm#Kap_1_2\">Doppelcharakter de\r\n               </li>                                              \r\n               <li>                                               \r\n                 <a href=\"me23_049.htm#Kap_1_3\">Die Wertform oder \r\n                 <ol type=\"A\">                                    \r\n                   <li>                                           \r\n                     <a href=\"me23_049.htm#Kap_1_3_A\">Einfache, ei\r\n                     <ol>                                         \r\n                       <li>                                       \r\n                         <a href=\"me23_049.htm#Kap_1_3_A_1\">Die be\r\n                       </li>                                      \r\n                       <li>                                       \r\n                         <a href=\"me23_049.htm#Kap_1_3_A_2\">Die re\r\n                         <ol type=\"a\">                            \r\n                           <li>                                   \r\n                             <a href=\"me23_049.htm#Kap_1_3_A_2_a\">\r\n                           </li>                                  \r\n                           <li>                                   \r\n                             <a href=\"me23_049.htm#Kap_1_3_A_2_b\">\r\n                           </li>                                  \r\n                         </ol>                                    \r\n                       </li>                                      \r\n                       <li>                                       \r\n                         <a href=\"me23_049.htm#Kap_1_3_A_3\">Die äq\r\n                       </li>                                      \r\n\r\n````\r\n\r\nand this is how I would like to look it: \r\n\r\n```html\r\n  <li><h2>Erster Abschnitt: Ware und Geld</h2>                 \r\n    <ol>                                                       \r\n      <li><A href=\"me23_049.htm\">Erstes Kapitel. Die Ware</A>  \r\n        <ol>                                                   \r\n          <li><A href=\"me23_049.htm#Kap_1_1\">Die zwei Faktoren \r\n          <li><A href=\"me23_049.htm#Kap_1_2\">Doppelcharakter de\r\n          <li><A href=\"me23_049.htm#Kap_1_3\">Die Wertform oder \r\n            <ol type=A>                                        \r\n              <li><A href=\"me23_049.htm#Kap_1_3_A\">Einfache, ei\r\n                <ol>                                           \r\n                  <li><A href=\"me23_049.htm#Kap_1_3_A_1\">Die be\r\n                  <li><A href=\"me23_049.htm#Kap_1_3_A_2\">Die re\r\n                    <ol type=a>                                \r\n                      <li><A href=\"me23_049.htm#Kap_1_3_A_2_a\">\r\n                      <li><A href=\"me23_049.htm#Kap_1_3_A_2_b\">\r\n                    </ol>                                      \r\n                  </li>                                        \r\n                  <li><A href=\"me23_049.htm#Kap_1_3_A_3\">Die äq\r\n                  <li><A href=\"me23_049.htm#Kap_1_3_A_4\">Das Ga\r\n                </ol>                                          \r\n\r\n```\r\n\r\nThis is from a table of contents to a document which spans 38 files (including this TOC file). \r\n\r\nThe same applies to the actual text pages where a typical paragraph as produced by tidy would look like this: \r\n\r\n```\r\n<p>\r\nLooooooooooooooooooong text line - whole paragraph\r\n</p>\r\n```\r\n\r\nwhereas in my view it would look better and would be more maintainable like this: \r\n\r\n`<p>Looooooooooooooooooong text line - whole paragraph ..... </p>`\r\n\r\nTo edit the text of such a paragraph, I can switch the editor to wrap mode, so that I can see the whole text in the editor window. \r\n\r\nIs there a hidden (hidden for my eyes, that is) config option which lets me get this? \r\nOr is this a case for a feature request? \r\nIf yes, should the way I want to have it be the default way?\r\nShould it be alterable, with a new config option, to the way it is now, or the other way round? \r\n\r\nI could cope with any way, but to me it seems to be more logical to have it my way... \r\n\r\nCheers,\r\nL.W.\r\n"},"comment":{"url":"https://api.github.com/repos/htacg/tidy-html5/issues/comments/305546626","html_url":"https://github.com/htacg/tidy-html5/issues/486#issuecomment-305546626","issue_url":"https://api.github.com/repos/htacg/tidy-html5/issues/486","id":305546626,"user":{"login":"LWillms","id":25504742,"avatar_url":"https://avatars0.githubusercontent.com/u/25504742?v=3","gravatar_id":"","url":"https://api.github.com/users/LWillms","html_url":"https://github.com/LWillms","followers_url":"https://api.github.com/users/LWillms/followers","following_url":"https://api.github.com/users/LWillms/following{/other_user}","gists_url":"https://api.github.com/users/LWillms/gists{/gist_id}","starred_url":"https://api.github.com/users/LWillms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LWillms/subscriptions","organizations_url":"https://api.github.com/users/LWillms/orgs","repos_url":"https://api.github.com/users/LWillms/repos","events_url":"https://api.github.com/users/LWillms/events{/privacy}","received_events_url":"https://api.github.com/users/LWillms/received_events","type":"User","site_admin":false},"created_at":"2017-06-01T16:25:05Z","updated_at":"2017-06-01T16:25:05Z","body":"I thought that @balthisar would be the one to do it, after all the valuable propasals he had made, especially it was marked as scheduled for the 5.5 milestone. \r\n\r\nWell, I could do with some postprocessing using RegExp, like this one for the `<p>`\r\n`<p>\\r\\n +(.*)\\r\\n\\s+</p>\\r\\n`\r\nreplace with\r\n`<p>\\1</p>`\r\n\r\n(The \\1 might be a special Ultraedit syntax). \r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"LWillms"}}