This is the talk page for discussing improvements to the Global Lua Modules/Docbunto page.
- Please sign and date your posts by typing four tildes (
~~~~
). - Put new text under old text. Click here to start a new topic.
- If you're new to the wiki, please take a look at the talk page help.
- Be polite
- Assume good faith
- Be welcoming
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)