1
0
Selaa lähdekoodia

Fix missing whitespaces in visual ui

Lucas de Souza 4 vuotta sitten
vanhempi
commit
071e0bc9ea
3 muutettua tiedostoa jossa 7 lisäystä ja 4 poistoa
  1. 4 0
      css/ivprog-term.css
  2. 2 1
      css/ivprog-visual-1.0.css
  3. 1 3
      js/io/domConsole.js

+ 4 - 0
css/ivprog-term.css

@@ -9,6 +9,10 @@
   z-index: 10;
 }
 
+.ivprog-term-userText {
+  white-space: pre;
+}
+
 .ivprog-term-userText, .ivprog-term-userInput {
   color: #f2d6d6;
 }

+ 2 - 1
css/ivprog-visual-1.0.css

@@ -698,6 +698,7 @@ div.function_name_div_updated:active,
 .global_container .span_value_variable,
 .variable_container .span_value_variable {
     font-size: 110%;
+    white-space: pre;
 }
 .global_container .global_type, .global_container .editing_name_var, .global_container .span_value_variable,
 .variable_container .variable_type,  .variable_container .span_value_variable, .variable_container .editing_name_var,
@@ -1076,4 +1077,4 @@ div.ui.checkbox.transition.visible {
 
 .pass_button button {
 	padding-bottom: 2px;
-}
+}

+ 1 - 3
js/io/domConsole.js

@@ -216,9 +216,7 @@ export class DOMConsole {
   }
 
   getOutputText (text) {
-    if(text.trim().length == 0) {
-      text = text.replace(/\s/g, " ");
-    }
+    text = text.replace(/\s/g, " ");
     return `<span>${text}</span>`;
   }