Open JeffreyCHoover opened 1 year ago
I also ran into this. The issue pops up when there is no space between the <
and the number. For example, < .01
renders fine, <.01
does not. Here was my work around chapter 6 if it's helpful:
We might just have to update the fmt_small
functionality to add a space if the output is html.
@wjakethompson That's interesting that the space (or lack thereof) is throwing everything off. If we don't want to add a space after the <
symbol to have as similar as possible format across the pdf and html versions, it appears that replacing <
with $\\lt$
for the html output will insert a <
in the rendered html output.
I've been trying out some code for doing this in fmt_prop
and fmt_prop_pct
: https://github.com/atlas-aai/ratlas/blob/fmt-prop-bug/R/formatting.R#L184-L185
fmt_prop
is not rendering correctly for html versions of the tech manual, specifically values that become <.01, <.001, etc. It appears that the code for the less than symbol is being misinterpreted when rendering to html output.