| | @@ -5836,14 +5836,11 @@ |
| 5836 | 5836 | pik_reset_samepath(p); |
| 5837 | 5837 | do{ |
| 5838 | 5838 | n = pik_next_rpath(p, pErr); |
| 5839 | 5839 | }while( n<1 ); |
| 5840 | 5840 | if( pHeading ){ |
| 5841 | | - if( rHdg<0.0 || rHdg>360.0 ){ |
| 5842 | | - pik_error(p, pHeading, "headings should be between 0 and 360"); |
| 5843 | | - return; |
| 5844 | | - } |
| 5841 | + rHdg = fmod(rHdg,360.0); |
| 5845 | 5842 | }else if( pEdgept->eEdge==CP_C ){ |
| 5846 | 5843 | pik_error(p, pEdgept, "syntax error"); |
| 5847 | 5844 | return; |
| 5848 | 5845 | }else{ |
| 5849 | 5846 | rHdg = pik_hdg_angle[pEdgept->eEdge]; |
| | @@ -7889,13 +7886,14 @@ |
| 7889 | 7886 | /* Print a usage comment for the shell and exit. */ |
| 7890 | 7887 | static void usage(const char *argv0){ |
| 7891 | 7888 | fprintf(stderr, "usage: %s [OPTIONS] FILE ...\n", argv0); |
| 7892 | 7889 | fprintf(stderr, |
| 7893 | 7890 | "Convert Pikchr input files into SVG. Filename \"-\" means stdin.\n" |
| 7891 | + "All output goes to stdout.\n" |
| 7894 | 7892 | "Options:\n" |
| 7895 | 7893 | " --dont-stop Process all files even if earlier files have errors\n" |
| 7896 | | - " --svg-only Omit raw SVG without the HTML wrapper\n" |
| 7894 | + " --svg-only Emit raw SVG without the HTML wrapper\n" |
| 7897 | 7895 | ); |
| 7898 | 7896 | exit(1); |
| 7899 | 7897 | } |
| 7900 | 7898 | |
| 7901 | 7899 | /* Send text to standard output, but escape HTML markup */ |
| | @@ -8131,6 +8129,6 @@ |
| 8131 | 8129 | |
| 8132 | 8130 | |
| 8133 | 8131 | #endif /* PIKCHR_TCL */ |
| 8134 | 8132 | |
| 8135 | 8133 | |
| 8136 | | -#line 8161 "pikchr.c" |
| 8134 | +#line 8159 "pikchr.c" |
| 8137 | 8135 | |