Remove newline inside the equations
Closed, ResolvedPublic

Description

The newline inside equation is good for Latex but not for VisualEditor

\begin{equation}
\int_{\gamma_s}f(z)\,\rd z \to \int_{\gamma_0}f(z)\,\rd z\mbox{ as
}s\to 0.
\end{equation}

is traslated to

<math display="block">\int_{\gamma_s}f(z)\,\mbox{d} z \to \int_{\gamma_0}f(z)\,\mbox{d} z\mbox{ as

}s\to 0.</math>

but the newline among the curly brackets breaks VE

To complete this task modify the MathCheck.py to remove \n from inside math environments.
Please pull request your changes.

mapellidario renamed this task from remove space from inside the equations to remove newline from inside the equations.Nov 15 2016, 3:57 PM
ruphy edited projects, added Restricted Project; removed Restricted Project.Jan 10 2017, 2:15 PM
ruphy edited projects, added WikiToLearn: TeXLa; removed Restricted Project.Jan 10 2017, 2:31 PM
davidev renamed this task from remove newline from inside the equations to Remove newline inside the equations.Jan 17 2017, 11:41 PM
davidev removed davidev as the assignee of this task.
davidev updated the task description. (Show Details)
davidev moved this task from Backlog to Texla on the WikiToLearn: Junior Jobs board.
davidev moved this task from Backlog to Renderer on the WikiToLearn: TeXLa board.
davidev added a subscriber: davidev.
davidev raised the priority of this task from Normal to High.Jan 18 2017, 12:10 AM
davidev updated the task description. (Show Details)Jan 28 2017, 10:40 AM

Sorry about that, it was an old link. Try to insert the example in a test page..

davidev updated the task description. (Show Details)Jan 28 2017, 10:40 AM
nikhilsardana added a subscriber: nikhilsardana.

Can I work on this issue? Thanks!

subhankarshah added a subscriber: subhankarshah.

Can I also work on it?

Hi! sorry about the delay. Of course, everyone could help with PR!

Hi @subhankarshah ! Are you willing to work on the task?

elauksap claimed this task.Mar 31 2017, 5:57 PM
elauksap added a subscriber: elauksap.
This comment was removed by elauksap.

Shouldn't removing all the new-line characters from within the math tags be enough?

mtxt = mtxt.replace('\n', '')

Exactly! Please create a PR

PR Accepted! Please mark this ticket as resolved.

elauksap closed this task as Resolved.Mar 31 2017, 10:00 PM