Two bugs in v1.3
-
Testing this update on a staging install. Ran into two bugs.
WP v5.6
this plugin v1.3Bug 1 – Can’t paste XML or HTML into the Code block when this plugin is activated. It basically pastes in a blank line.
Note: If you change the block to “Edit as HTML” and try pasting into that, you end up with the “Invalid block” error. So your only option is to manually type in the code.
Bug 2 – This issue is now happening with XML Unexpected line number appearing on same line #193
I had a page with XML in a code block. I updated to 1.3. Then looked at this page. It now has the “unexpected line number” problem in the code block with XML in it. It didn’t have this problem in the previous version (1.2.3). To doublecheck, I reinstalled the previous version and verified that the problem wasn’t there.
I have this XML on the page:
<?xml version="1.0" encoding="utf-8" ?> <nlog xmlns="https://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://www.nlog-project.org/schemas/NLog.xsd NLog.xsd" autoReload="true"> </nlog>
Due to bug #1, you have to manually type in the XML. Here is the simplest way to repro this:
1. Create a new page
2. Add a code block
3. Manually type in this XML:<?xml version="1.0" encoding="utf-8" ?> <tag a="t" b="t"> </tag>
4. Use the following settings:
* Language = HTML, XML
* Show Line Numbers = true
* Wrap Lines = true
- The topic ‘Two bugs in v1.3’ is closed to new replies.