groff-commit
[Top][All Lists]
Advanced

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

[groff] 101/115: src/preproc/eqn/box.cpp: Trivially refactor.


From: G. Branden Robinson
Subject: [groff] 101/115: src/preproc/eqn/box.cpp: Trivially refactor.
Date: Thu, 1 Jun 2023 10:46:17 -0400 (EDT)

gbranden pushed a commit to branch branden-2022-06-01
in repository groff.

commit 4ccc7c138a007113ead94c33c3939c9fd94c9827
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]