On Mar 25, 2012, at 12:15 AM, Cedric Greevey wrote: > On Sun, Mar 25, 2012 at 2:59 AM, Andy Fingerhut > <andy.finger...@gmail.com> wrote: >> I've tried again using links with doc strings as the values of the title >> attribute, but when the text in Firefox 11.0 it does not honor the line >> breaks in my text, but reflows it. Try it out yourself at [1]: >> >> [1] >> http://homepage.mac.com/jafingerhut/files/cheatsheet-clj-1.3.0-v1.4-tooltips/cheatsheet-title-attribute.html >> >> Is there a way that Firefox will let me specify where line breaks should go? >> If I put <pre> or <br> tags in the text of a title attribute, those just >> show up literally in the text that the browser displays in the tool tip. I >> have line breaks in the title attribute value in my HTML, but Firefox seems >> to be ignoring those. >> >> Safari and Chrome seem to honor the line breaks in the title attribute, but >> they make the popup windows so narrow that the lines break in the middle, in >> addition to where I put my line breaks, which is better but not great. Is >> there a way to tell the browser to make the popup windows wider? > > Remind me again: why do you want to put much of the docstring in > there, and not just a quick precis that's enough to jog someone's > memory and/or let them know whether they ought to click through or > should skip that one based on what they're trying to find?
I like that what I see in the tip is the original doc string I would get if I typed (doc some-symbol) in a REPL session. If those doc strings change in later versions of Clojure, I can rerun my cheatsheet generator program and pick up all those changes in seconds. If you want to write a quick precis for what are now 633 symbols with links on the cheatsheet, you are welcome to do it. I don't want to. The source code for the cheatsheet generator is under the Eclipse Public License and available to you: [1] https://github.com/jafingerhut/clojure-cheatsheets Andy -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en