Skip to content

Semi-colons not rendering in both inline and block statements #15

@dan-j

Description

@dan-j

I am using v2.8 of the wordpress plugin and have dropped in the latest version of EnlighterJS, v2.8 (I noticed the plugin was still using EnlighterJS v2.7). The examples below are all using lang="java" however I have verified the same also happens for lang="php"

The following snippets aren't rendering the final semi-colon.

This is an [java]"inline";[/java] string.
[java]
"string";

[/java]

The following does seem to work, so it seems to only occur if the semi-colon is the last character. Spaces and tabs (but not newlines) causes the semi-colon to print.

This is an [java]"inline;" [/java] string.
[java]
"string";
a
[/java]

Hope this helps. If you have ideas where the issue is I can have a look at fixing it.

Metadata

Metadata

Assignees

Labels

BugEnlighterJS v2legacy EnlighterJS (based on MooTools Framework)

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions