Skip to content

Commit

Permalink
Fix GetTextOfElement for CDelimiter
Browse files Browse the repository at this point in the history
- fix \mid for LaTeX, now without space
  • Loading branch information
IgolJack committed Oct 9, 2023
1 parent e762eaa commit fb7b9fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion word/Math/operators.js
Original file line number Diff line number Diff line change
Expand Up @@ -4053,7 +4053,7 @@ CDelimiter.prototype.GetTextOfElement = function(isLaTeX) {
var strTemp = "";
var strStartSymbol = this.Pr.begChr === -1 ? "" : String.fromCharCode((this.begOper.code || this.Pr.begChr) || 40);
var strEndSymbol = this.Pr.endChr === -1 ? "" : String.fromCharCode((this.endOper.code || this.Pr.endChr) || 41);
var strSeparatorSymbol = isLaTeX ? "\\mid " : "∣";
var strSeparatorSymbol = isLaTeX ? "\\mid" : "∣";

if ((!AscMath.MathLiterals.lBrackets.IsIncludes(strStartSymbol) && !AscMath.MathLiterals.lrBrackets.IsIncludes(strStartSymbol)) || isLaTeX)
{
Expand Down

0 comments on commit fb7b9fd

Please sign in to comment.