Doug McIlroy <[email protected]> wrote:
> But it is not unnoticeable in case of unary minus.
> Groff eqn treats
> a~=~-b
> as if it were binary, and inserts extra space between
> the - and b.
It does work with the following patch--for the mentioned cases.
In case of a=c~-b then there is only space before the '-',
so either c-b or c~-~b must be used then.
diff --git a/src/preproc/eqn/list.cpp b/src/preproc/eqn/list.cpp
index 9e6e359..d77f771 100644
--- a/src/preproc/eqn/list.cpp
+++ b/src/preproc/eqn/list.cpp
@@ -101,6 +101,7 @@ int list_box::compute_metrics(int style)
|| prevt == OPERATOR_TYPE
|| prevt == RELATION_TYPE
|| prevt == OPENING_TYPE
+ || prevt == SUPPRESS_TYPE
|| prevt == PUNCTUATION_TYPE)
list.p[i]->spacing_type = ORDINARY_TYPE;
}
--Carsten