-
-
Notifications
You must be signed in to change notification settings - Fork 77
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
Graph format shows "<br />" when specifying nodelabel #846
Comments
2 years ago it seems like it was expected for SRF+Diagrams to return But that Diagrams-specific assertion was removed shortly thereafter: It is not actually clear to me what was the expected behavior. The only thing I know right now is the current behavior, as per this issue, does not seem to be correct. |
@alex-mashin Since you authored the change. I'd expect to get some kind of line break whether with |
Can't bring myself to writing unit tests (which, for this extension are next to meaningless anyway) for a big patch I made this spring, which is likely to remove this issue. |
You might want to have a look at my fork, though I last checked it under MW 1.35; and did some cosmetic changes afterwards, which I was unable to test so far. |
@alex-mashin I did not have a look yet, but is your plan to merge that fork back into SRF? Or are you going to keep it separate? |
I planned to test it with MW 1.39, write some formal tests and submit a pull request. |
If you use the current code base from master you can simply run "make ci" to run the tests. Change the Makefile or create an ".env" with the versions (matrix) you want to test. The same setup is run in CI. |
Thank you, but I need to write new tests for the |
@alex-mashin tests are always welcome! Did you see https://github.com/SemanticMediaWiki/SemanticResultFormats/tree/master/tests/phpunit/Unit/Graph I did not have time to look into the existing tests if they are complete, meaningful, working :-) ... |
1), 2): no; 3) yes. |
Setup
Issue
Graphs with overridden nodelabel display
<br />
instead of line breaks in the labels.Steps to reproduce
Create a graph and specify
|nodelabel=displaytitle
.Example on SMW sandbox: https://sandbox.semantic-mediawiki.net/wiki/Mise_en_place_d%27un_wiki_(small)
Expected result:
The labels in the graph should contain line breaks.
Observed result:
The labels in the graph contain
<br />
instead of line breaks.The text was updated successfully, but these errors were encountered: