Skip to content

Formatting glitches in primitive C code #36

@ascherer

Description

@ascherer

Section §1 of queen.w gets clobbered.

Temporary fix:

diff --git a/queen.w b/queen.w
index 6d9d09b..f22164b 100644
--- a/queen.w
+++ b/queen.w
@@ -18,12 +18,12 @@ You might find it interesting to compare the output of {\sc QUEEN} with
 the contents of \.{queen.gb}; the former is intended to be readable
 by human beings, the latter by computers.
 
-@p
+@p@t$\!\!\!$@>@+
 #include "gb_graph.h" /* we use the {\sc GB\_\,GRAPH} data structures */
 #include "gb_basic.h" /* we test the basic graph operations */
 #include "gb_save.h" /* and we save our results in ASCII format */
 @#
-main()
+@;main()
 {@+Graph *g,*gg,*ggg;
   g=board(3L,4L,0L,0L,-1L,0L,0L); /* a graph with rook moves */
   gg=board(3L,4L,0L,0L,-2L,0L,0L); /* a graph with bishop moves */

queen_bad.pdf

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions