brave-clojure-web
brave-clojure-web copied to clipboard
Fix/code tags
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 "... outrecurso 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.