This is a static dump of issues in the old "Flyspray" bugtracker for DokuWiki. Bugs and feature requests are now tracked at the
issue tracker at Github
FS#1915 code tag - adds newline
I use the "code" tags very often in my wiki.
DokuWiki generated this:
Whenever I copy and paste the text from the HTML page to somewhere else a newline is added.
DokuWiki should instead generate this:
This would prevent the newline while copy and pasting the final text.
I found out I can change the position "code" tag to this:
then the closing "pre" tag is on the right position, right after the text.
I do not know if a user has to care about the outcome of placing the "code" tag differently.
I don't see how a newline at the end makes any difference?
Fixed in git, code tag content now strips first and last newline
For example, you some wiki page and the source looks like:
If I copy the text in a terminal it would be executed because of the newline.
If the page source looks like that:
I would have to press "return" to get it executed.