brave-clojure-web icon indicating copy to clipboard operation
brave-clojure-web copied to clipboard

Fix/code tags

Open devurandom opened this issue 9 years ago • 0 comments
trafficstars

The previous version with spacing on the wrong side of <code> or </code>, or with extraneous <code> tags was hard to read and sometimes even created incorrect code, when it introduced spacing in bad places.

Examples in chapter 5:

  • "you will definitely need to whip out recurso you don’t blow up your program with a stack overflow" should be "... out recur so you ..."
  • "the short explanation is that (require [clojure.set :as set]) allows you to easily use functions" is displayed as "... ( require [ clojure.set :as set]) ...". Looking at the HTML, I guess this is because "(", "require", "[" and so on are all in their own <code> block. That could also be the reason for all the other weird spacing issues.
  • "Finally, the function can-move?is used to determine" s.a.
  • "The predicate function is created with ( comp not-empty ( partial valid- moves board))" s.a.

devurandom avatar Apr 10 '16 11:04 devurandom