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

Indentation #165

Merged
merged 2 commits into from
Sep 18, 2020
Merged

Indentation #165

merged 2 commits into from
Sep 18, 2020

Conversation

flo-dup
Copy link
Contributor

@flo-dup flo-dup commented Sep 17, 2020

Wrong indentation in svg diagram was because of the text nodes in the svg basic components. Indeed, empty text nodes were kept and the transformer does not manage them. This PR looks for empty nodes and delete them after loading each component. Another way would have been to validate the content of the svg component while loading it.

Please check if the PR fulfills these requirements (please use '[x]' to check the checkboxes, or submit the PR and then click the checkboxes)

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Does this PR already have an issue describing the problem ?
No

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Bug fix

What is the current behavior? (You can also link to an open issue here)
Wrong indentation in produced svg

What is the new behavior (if this is a feature change)?
Correct indentation

Does this PR introduce a breaking change or deprecate an API?
No

Other information:
Note that the high number of lines modified is because of the svg test files.

Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

85.7% 85.7% Coverage
0.0% 0.0% Duplication

warning The version of Java (1.8.0_265) you have used to run this analysis is deprecated and we will stop accepting it from October 2020. Please update to at least Java 11.
Read more here

@flo-dup flo-dup requested a review from geofjamg September 17, 2020 12:23
@geofjamg geofjamg merged commit 8b14283 into master Sep 18, 2020
@geofjamg geofjamg deleted the indentation branch September 18, 2020 06:55
BenoitJeanson pushed a commit that referenced this pull request Sep 24, 2020
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
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.

2 participants