groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 108/126: src/preproc/eqn/box.cpp: Trivially refactor.


From: G. Branden Robinson
Subject: [groff] 108/126: src/preproc/eqn/box.cpp: Trivially refactor.
Date: Wed, 5 Jul 2023 17:03:19 -0400 (EDT)

gbranden pushed a commit to branch branden-2023-07-05
in repository groff.

commit 74128318d413863e24b3d82b97f401ee6779570b
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)
-    // &ThickSpace; doesn't display right under Firefox 1.5.
-    printf("<mtext>&ensp;</mtext>");
+    printf("<mtext>&ThinSpace;</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>&ThinSpace;</mtext>");
+    // &ThickSpace; doesn't display right under Firefox 1.5.
+    printf("<mtext>&ensp;</mtext>");
 }
 
 void box_list::list_debug_print(const char *sep)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]