[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 108/127: src/preproc/eqn/box.cpp: Trivially refactor.
From: |
G. Branden Robinson |
Subject: |
[groff] 108/127: src/preproc/eqn/box.cpp: Trivially refactor. |
Date: |
Mon, 10 Jul 2023 04:31:05 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit 03c96c5e3f7276abe7924876b39b3cfa7bbd4b0c
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri May 19 00:20:15 2023 -0500
src/preproc/eqn/box.cpp: Trivially refactor.
Relocate code to put class member functions in lexicographic order, to
prepare for addition of two more classes.
---
src/preproc/eqn/box.cpp | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/preproc/eqn/box.cpp b/src/preproc/eqn/box.cpp
index cf3e7ac48..4626409dd 100644
--- a/src/preproc/eqn/box.cpp
+++ b/src/preproc/eqn/box.cpp
@@ -589,31 +589,31 @@ void tab_box::check_tabs(int level)
}
}
-full_space_box::full_space_box()
+half_space_box::half_space_box()
{
spacing_type = SUPPRESS_TYPE;
}
-void full_space_box::output()
+void half_space_box::output()
{
if (output_format == troff)
- printf("\\h'%dM'", thick_space);
+ printf("\\h'%dM'", thin_space);
else if (output_format == mathml)
- //    doesn't display right under Firefox 1.5.
- printf("<mtext> </mtext>");
+ printf("<mtext> </mtext>");
}
-half_space_box::half_space_box()
+full_space_box::full_space_box()
{
spacing_type = SUPPRESS_TYPE;
}
-void half_space_box::output()
+void full_space_box::output()
{
if (output_format == troff)
- printf("\\h'%dM'", thin_space);
+ printf("\\h'%dM'", thick_space);
else if (output_format == mathml)
- printf("<mtext> </mtext>");
+ //    doesn't display right under Firefox 1.5.
+ printf("<mtext> </mtext>");
}
void box_list::list_debug_print(const char *sep)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 108/127: src/preproc/eqn/box.cpp: Trivially refactor.,
G. Branden Robinson <=