Index: trunk/phase3/includes/Math.php |
— | — | @@ -37,7 +37,8 @@ |
38 | 38 | |
39 | 39 | if( $this->mode == MW_MATH_SOURCE ) { |
40 | 40 | # No need to render or parse anything more! |
41 | | - return ('$ '.htmlspecialchars( $this->tex ).' $'); |
| 41 | + # New lines are replaced with spaces, which avoids confusing our parser (bugs 23190, 22818) |
| 42 | + return ('$ ' . str_replace( "\n", " ", htmlspecialchars( $this->tex ) ) . ' $'); |
42 | 43 | } |
43 | 44 | if( $this->tex == '' ) { |
44 | 45 | return; # bug 8372 |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -109,6 +109,7 @@ |
110 | 110 | * (bug 19858) Removed obsolete <big> in interface messages. |
111 | 111 | * (bug 21456) "Bad title" error when showing non-local interwiki pages no longer |
112 | 112 | displays incorrect tabs |
| 113 | +* (bug 23190) Improved math representation for text browsers. |
113 | 114 | |
114 | 115 | === API changes in 1.17 === |
115 | 116 | * (bug 22738) Allow filtering by action type on query=logevent |