rolinh / dfc

Report file system space usage information with style
BSD 3-Clause "New" or "Revised" License
106 stars 10 forks source link

Graph in LaTeX output #25

Open scrouthtv opened 3 years ago

scrouthtv commented 3 years ago

This is a thing I noticed working on #24 : If I draw a graph in the latex output, every empty graph element is outputted as a \-:

dev & \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- & 0\% & 2.8G & 2.8G & /dev

However, using pdflatex (and I'm pretty sure every other TeX compiler), the \- is interpreted as a suggestion to hyphenate. So this graph is drawn is empty: image If I were to replace every \- with a simple -, it instead is drawn just like the text ouptut: image (notice the tiny line in between)

Is the current behaviour supposed to be like that? I read in the source that there might be an overhaul to the latex graph output at some point, but what about now?

If you want to change this, I can do it with #24 as well.

rolinh commented 3 years ago

This is intriguing. Here is what I get using pdflatex (pdfTeX 3.14159265-2.6-1.40.21 (TeX Live 2020/Arch Linux)), which seems correct to me: image

EDIT: OK, I see what you mean now, sorry. Something does not look right in my case, probably because with the default font, the hyphen is not as wide as the equal sign. I actually wonder if not printing any char would be preferred.