SemanticMediaWiki / SemanticResultFormats

Provides additional visualizations (result formats) for Semantic MediaWiki
https://www.semantic-mediawiki.org/wiki/Extension:Semantic_Result_Formats
Other
45 stars 75 forks source link

Bug [graph]: fix word wrapping in on-node fields #816

Open alex-mashin opened 4 months ago

alex-mashin commented 4 months ago

In graph format, non-page property values that are displayed on nodes (with graphfields = yes) should be word-wrapped with <br />, not newline, since they are displayed within <td> HTML tags.

gesinn-it-gea commented 4 months ago

Shouldn't we implement this with CSS instead of hard-coded line breaks?

alex-mashin commented 4 months ago

Shouldn't we implement this with CSS instead of hard-coded line breaks?

As far as I understand, there is no way to automatically word-wrap in dot, including HTML-like strings, neither in SVG with CSS.

If you know a way, please tell us.