Nl2br extension
From DP
Terminal output from the Bus Pirate looks bad on MediaWiki.
Searching 7bit I2C address space. Found devices at: 0xA0(0x50 W) 0xA1(0x50 R) I2C>
This output from the I2C sniffer bunches up into a single line instead of retaining the correct line breaks.
Searching 7bit I2C address space.
Found devices at:
0xA0(0x50 W) 0xA1(0x50 R)
I2C>
Use the <bp>, <buspirate>, <nl2br>, and <terminal> tags to convert the single line breaks in the terminal output to HTML line breaks.
The main difference between our extension and the <pre>, <nowiki>, <syntax lang=text>, etc command is that nl2br A)processes any wiki tags, and B)doesn't escape HTML.
<nl2br>
Searching 7bit I2C address space.
Found devices at:
0xA0(0x50 W) 0xA1(0x50 R)
I2C></nl2br>
This is how it's used.
Download the nl2br extension if you find it helpful. Have it under the MediaWiki documentation license where we got the example code.
