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

keeptitle attributes to retain provided title text: https://github.co… #876

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

opoudjis
Copy link
Contributor

…m/metanorma/metanorma-iso/issues/1124

Metanorma PR checklist

@opoudjis opoudjis self-assigned this Mar 12, 2024
next if %w(sections annex preface).include? t.parent.name

t.next_element.nil? or next
%w(sections annex preface).include? t.parent.name and next
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.

"//terms[not(.//definitions)] | //clause[.//terms][not(.//definitions)]",
@i18n&.termsdef, true
)
replace_title(xml, "//terms[not(.//definitions)] | //clause[.//terms][not(.//definitions)]",
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. [100/80]

@opoudjis opoudjis merged commit 5e6067e into main Mar 12, 2024
19 checks passed
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