bwanders / dokuwiki-strata

Strata - a Semi-Structured Data plugin for Dokuwiki
https://www.dokuwiki.org/plugin:strata
17 stars 8 forks source link

Multi-Line Values? #16

Closed c0nnex closed 8 years ago

c0nnex commented 8 years ago

I have Data-entries which have a Description, which can be more than one line. Is there any builtin way to handle/declare those? right now only the first line is shown and i get the error

I don't understand data entry line ' (second line of description)'
bwanders commented 8 years ago

At the moment, there is no way of declaring multi-line values.

However, if you are using the wiki type, e.g., have a Description [wiki] field, you can use a trick of the dokuwiki syntax: you can force a newline in the rendered output. This works as follows:

Description [wiki]: The first line.\\ The second line.

This is built-in dokuwiki syntax. You can even place double forced new lines to present the appearance of a new paragraph: ...end of paragraph.\\ \\ The next paragraph...

Does that help?

c0nnex commented 8 years ago

Ah yes ... I always tried Description [type:.wiki]: .... .\ next line but that did not work ... without the type:: it works and is enough for my needs. Thanks