Skip to content

Commit f58e1cb

Browse files
committed
Fixed bug in preprocessor and updated Makefile.
1 parent a05f2a8 commit f58e1cb

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ comprog.pdf: comprog.tex
66
python2 preprocess.py
77
$(PDFLATEX) comprog
88
$(PDFLATEX) comprog
9-
rm *.{aux,log,toc}
9+
rm -f *.{aux,log,toc,fls,fdb_latexmk}
1010
rm -rf _code/
1111

1212
clean:

‎comprog.pdf‎

-38 Bytes
Binary file not shown.

‎preprocess.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ def mkhash(dat):
2626

2727
for dat, hash in zip(dat, mkhash(dat)):
2828
if(len(dat) > MARGIN):
29-
print>>out, dat
29+
print>>out, dat.replace(' ', '----')
3030
else:
3131
print>>out, dat.ljust(MARGIN, '-').replace(' ', '----') + "// " + hash

0 commit comments

Comments
 (0)