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

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

Merged
merged 1 commit into from Oct 27, 2021
Merged

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

merged 1 commit into from Oct 27, 2021

Conversation

alex-mashin
Copy link
Contributor

This PR is made in reference to: #672

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

  • node1
    ** node11

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

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

* node1
** node11

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 <plantuml>.

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
@JeroenDeDauw JeroenDeDauw merged commit 695dfde into SemanticMediaWiki:master Oct 27, 2021
@alex-mashin alex-mashin deleted the TREE branch November 3, 2021 18:12
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.

Tree format needs a blank space after the bullet
2 participants