{"action":"created","issue":{"url":"https://api.github.com/repos/rbeezer/mathbook/issues/80","labels_url":"https://api.github.com/repos/rbeezer/mathbook/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/rbeezer/mathbook/issues/80/comments","events_url":"https://api.github.com/repos/rbeezer/mathbook/issues/80/events","html_url":"https://github.com/rbeezer/mathbook/issues/80","id":66529219,"number":80,"title":"CSS extra space after section titles before periods","user":{"login":"Alex-Jordan","id":4732672,"avatar_url":"https://avatars.githubusercontent.com/u/4732672?v=3","gravatar_id":"","url":"https://api.github.com/users/Alex-Jordan","html_url":"https://github.com/Alex-Jordan","followers_url":"https://api.github.com/users/Alex-Jordan/followers","following_url":"https://api.github.com/users/Alex-Jordan/following{/other_user}","gists_url":"https://api.github.com/users/Alex-Jordan/gists{/gist_id}","starred_url":"https://api.github.com/users/Alex-Jordan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alex-Jordan/subscriptions","organizations_url":"https://api.github.com/users/Alex-Jordan/orgs","repos_url":"https://api.github.com/users/Alex-Jordan/repos","events_url":"https://api.github.com/users/Alex-Jordan/events{/privacy}","received_events_url":"https://api.github.com/users/Alex-Jordan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-06T05:19:46Z","updated_at":"2015-04-06T17:05:22Z","closed_at":null,"body":"Line 3310 of `mathbook-3.css` has `.title::after {   content: \" \";}`.\r\nLine 3286 of `mathbook-3.css` has `.heading::after {   content: \". \";}`.\r\n\r\nThe net effect is that we see output like \r\n**Definition 1.1.1 Average Velocity .** \r\ninstead of \r\n**Definition 1.1.1 Average Velocity.**\r\n\r\nThe space at 3310 is the one that I'm not sure has a purpose. I suppose there are places where a title has something come right after it, and that space is necessary for those occasions? \r\n\r\nA similar issue makes for\r\n**Exercise 1 .** What...\r\ninstead of\r\n**Exercise 1.** What...\r\nwhere a space follows a `codenumber`. That space is needed back in **Definition 1.1.1 Average Velocity** though. \r\n\r\nQuestion: since all this stuff that comes before the period is visually separate from the body elements through CSS, is the period necessary? And if it is, then can we make the extra space showing up before periods go away?"},"comment":{"url":"https://api.github.com/repos/rbeezer/mathbook/issues/comments/90157969","html_url":"https://github.com/rbeezer/mathbook/issues/80#issuecomment-90157969","issue_url":"https://api.github.com/repos/rbeezer/mathbook/issues/80","id":90157969,"user":{"login":"rbeezer","id":1881714,"avatar_url":"https://avatars.githubusercontent.com/u/1881714?v=3","gravatar_id":"","url":"https://api.github.com/users/rbeezer","html_url":"https://github.com/rbeezer","followers_url":"https://api.github.com/users/rbeezer/followers","following_url":"https://api.github.com/users/rbeezer/following{/other_user}","gists_url":"https://api.github.com/users/rbeezer/gists{/gist_id}","starred_url":"https://api.github.com/users/rbeezer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbeezer/subscriptions","organizations_url":"https://api.github.com/users/rbeezer/orgs","repos_url":"https://api.github.com/users/rbeezer/repos","events_url":"https://api.github.com/users/rbeezer/events{/privacy}","received_events_url":"https://api.github.com/users/rbeezer/received_events","type":"User","site_admin":false},"created_at":"2015-04-06T17:05:22Z","updated_at":"2015-04-06T17:05:22Z","body":"Dear Alex,\n\nI think the root cause of this problem is the HTML source written by  xsltproc. \n  But I'd love to be proved wrong.\n\nLook at the HTML and see if their isn't an extra carriage return at the problem \nlocation.  Generally, line breaks in the HTML seem to happen at \"good\" places, \nnot in content.\n\nI'm tempted to make a MWE and track it down to xsltproc, since it is very \nannoying.  I wonder if some fresh, experienced eyes (ie you) will see something \ndifferent, or a fix.  This is the one long-running technical problem of writing \nout good source (of any kind) that I have not been able to solve.\n\nThanks,\nRob\n\nOn 04/05/2015 10:19 PM, Alex Jordan wrote:\n> Line 3310 of |mathbook-3.css| has |.title::after { content: \" \";}|.\n> Line 3286 of |mathbook-3.css| has |.heading::after { content: \". \";}|.\n>\n> The net effect is that we see output like\n> *Definition 1.1.1 Average Velocity .*\n> instead of\n> *Definition 1.1.1 Average Velocity.*\n>\n> The space at 3310 is the one that I'm not sure has a purpose. I suppose there\n> are places where a title has something come right after it, and that space is\n> necessary for those occasions?\n>\n> A similar issue makes for\n> *Exercise 1 .* What...\n> instead of\n> *Exercise 1.* What...\n> where a space follows a |codenumber|. That space is needed back in *Definition\n> 1.1.1 Average Velocity* though.\n>\n> Question: since all this stuff that comes before the period is visually separate\n> from the body elements through CSS, is the period necessary? And if it is, then\n> can we make the extra space showing up before periods go away?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/rbeezer/mathbook/issues/80>.\n>\n"}}