Skip to content
Snippets Groups Projects
Commit cbce0ffe authored by Marijn Haverbeke's avatar Marijn Haverbeke
Browse files

[xml mode] Return Pass when indenting cdata/pre content

Issue #2135
parent c3c4d480
No related branches found
No related tags found
No related merge requests found
......@@ -298,8 +298,8 @@ CodeMirror.defineMode("xml", function(config, parserConfig) {
if (state.tokenize.isInAttribute) {
return state.stringStartCol + 1;
}
if ((state.tokenize != inTag && state.tokenize != inText) ||
context && context.noIndent)
if (context && context.noIndent) return CodeMirror.Pass;
if (state.tokenize != inTag && state.tokenize != inText)
return fullLine ? fullLine.match(/^(\s*)/)[0].length : 0;
// Indent the starts of attribute names.
if (state.tagName) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment