Fandom Developers Wiki

This is the talk page for discussing improvements to the Global Lua Modules/Docbunto page.

Module seems to need trailing whitespace to render newlines in documentation[]

The following renders like you'd expect:

--- Item summary.
--  The item description follows. Information provided by the item comment
--  can be formatted with both '''MediaWiki''' and **Markdown** syntax.
--  The comments can generally span multiple lines.
--  
--  By leaving empty comment lines, a new paragraph can be made in the
--  documentation. This can be used to give longer explanations whitespace.

But this doesn't

--- Item summary.
--  The item description follows. Information provided by the item comment
--  can be formatted with both '''MediaWiki''' and **Markdown** syntax.
--  The comments can generally span multiple lines.
--
--  By leaving empty comment lines, a new paragraph can be made in the
--  documentation. This can be used to give longer explanations whitespace.

It seems that if the line in between does not contain trailing whitespace then the second paragraph isn't true: the second example would give only 1 paragraph. Plenty of documentation formats don't require that there be trailing whitespace to split lines (also Dev Wiki:Lua states you shouldn't have it) and my editor automatically strips it off on save so I don't see why this module needs to have this requirement.

TheWWRNerdGuy 20:51, 30 January 2023 (UTC)