Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/omml linebreak #87

Merged
merged 7 commits into from
Dec 20, 2023
Merged

Fix/omml linebreak #87

merged 7 commits into from
Dec 20, 2023

Conversation

opoudjis
Copy link
Contributor

Metanorma PR checklist

@opoudjis opoudjis self-assigned this Dec 20, 2023
Html2Doc.new(filename: "test", asciimathdelims: ["{{", "}}"])
.process(html_input("<div><math xmlns='http://www.w3.org/1998/Math/MathML' displaystyle='true'>
<mstyle displaystyle='true'>
<mi>x</mi><mo>=</mo><mo linebreak='newline'/><mi>y</mi>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long. [87/80]

=end
it "processes linebreaks in MathML mtext" do
Html2Doc.new(filename: "test", asciimathdelims: ["{{", "}}"])
.process(html_input("<div><math xmlns='http://www.w3.org/1998/Math/MathML' displaystyle='true'>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long. [101/80]

end
math_only_para?(alignnode) and return nil
ooxml.name == "oMathPara" and
ooxml = ooxml.elements.select { |x| %w(oMath r).include?(x.name) }
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid immutable Array literals in loops. It is better to extract it into a local variable or a constant.

Copy link

codecov bot commented Dec 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5e0e15e) 95.18% compared to head (993cd07) 95.17%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #87      +/-   ##
==========================================
- Coverage   95.18%   95.17%   -0.01%     
==========================================
  Files           7        7              
  Lines         540      539       -1     
==========================================
- Hits          514      513       -1     
  Misses         26       26              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@opoudjis opoudjis merged commit e8aed98 into main Dec 20, 2023
18 checks passed
@opoudjis opoudjis deleted the fix/omml-linebreak branch December 20, 2023 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant