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

Add a blank space after the last bullet in 'tree' format #675

Closed alex-mashin closed 2 years ago

alex-mashin commented 2 years ago

This PR is made in reference to: #672

Tree format needs a blank space after the bullet. Expected:

Actual:

*node1 **node11

Reason: after this change, {{#ask:...|format=tree}} can be safely wrapped with

{{#tag:plantuml| @startmindmap {{#ask:...|format=tree}} @endmindmap }}

as is.

if External Data or some other extension provides the tag .

Now the output of {{#ask:...|format=tree}} has to be processed with a regular expression to inject the needed spaces.

Example: https://traditio.wiki/Template:MindMap.

Fixes #672