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 issue #2080 #2084

Closed
wants to merge 2 commits into from
Closed

Fix issue #2080 #2084

wants to merge 2 commits into from

Conversation

nothingzhl
Copy link
Contributor

Fix issue @harawata TBR

+ " <if test=\"sex != null\">\n"
+ " STUDENT.SSEX = #{sex};\n"
+ " </if>\n"
+ " and STUDENT.SNO = SCORE.SNO and HOUSE.HOUSE_MEMBER = STUDENT.SNO\n"
Copy link
Member

Choose a reason for hiding this comment

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

This line is missing in ex and the indentation of </if> looks wrong.

@nothingzhl
Copy link
Contributor Author

There are some logic mistakes, I'm already in process. By the way, the issue#2080 is more complicated than I thought.

@@ -306,20 +307,24 @@ public Float getFloatAttribute(String name, Float def) {
}
}

public List<XNode> getChildren() {
public List<XNode> getChildren(Predicate<Node> predicate) {
Copy link
Contributor

Choose a reason for hiding this comment

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

this change has nothing to do with the issue#2080

@human-user human-user mentioned this pull request Nov 7, 2023
harawata added a commit to harawata/mybatis-3 that referenced this pull request Nov 7, 2023
- Keeping indentation, but it won't be perfect in multi-line text nodes.
- Add a new line after each open/close tag even for a short line like `<id>3</id>`. There aren't many short lines like that in MyBatis mappers.
- Use 2 spaces for indentation instead of 4 to save earth.

Should fix mybatis#2080
Should close mybatis#2084 mybatis#2552 mybatis#2998
harawata added a commit to harawata/mybatis-3 that referenced this pull request Nov 7, 2023
- Keeping indentation, but it won't be perfect in multi-line text nodes.
- Add a new line after each open/close tag even for a short line like `<id>3</id>`. There aren't many short lines like that in MyBatis mappers.
- Use 2 spaces for indentation instead of 4 to save earth.

Should fix mybatis#2080
Should close mybatis#2084 mybatis#2552 mybatis#2998
@harawata
Copy link
Member

Closed in favor of #3001

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.

3 participants