Skip to content

Commit 8380bc5

Browse files
authored
formatting (#724)
1 parent 6fec952 commit 8380bc5

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

javascript/parseXmlLatex.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -343,10 +343,8 @@ const processTextFunctionsDefaultLatex = {
343343
/_/g,
344344
" "
345345
);
346-
declaration.firstChild.nodeValue = declaration.firstChild.nodeValue.replace(
347-
/_/g,
348-
" "
349-
);
346+
declaration.firstChild.nodeValue =
347+
declaration.firstChild.nodeValue.replace(/_/g, " ");
350348
recursiveProcessTextLatex(declaration.firstChild, writeTo);
351349
}
352350
writeTo.push("@");
@@ -421,10 +419,8 @@ const processTextFunctionsDefaultLatex = {
421419
/_/g,
422420
" "
423421
);
424-
declaration.firstChild.nodeValue = declaration.firstChild.nodeValue.replace(
425-
/_/g,
426-
" "
427-
);
422+
declaration.firstChild.nodeValue =
423+
declaration.firstChild.nodeValue.replace(/_/g, " ");
428424
recursiveProcessTextLatex(declaration.firstChild, writeTo);
429425
}
430426
writeTo.push("@");

javascript/processingFunctions/processFigurePdf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const processFigurePdf = (node, writeTo) => {
3838

3939
writeTo.push(
4040
"\\begin{figure}" +
41-
"[tp]" + // (ancestorHasTag(node, "EXERCISE") ? "[H]" : "[tp]") +
41+
"[tp]" + // (ancestorHasTag(node, "EXERCISE") ? "[H]" : "[tp]") +
4242
"\n" +
4343
(center ? "\\centering " : "")
4444
);

0 commit comments

Comments
 (0)