@@ -, +, @@ - Go to Cataloging -> Advanced editor. - On any text entry line (e.g. 245), enter some words with one, two, and more spaces in between them. When there are two or more spaces between words the spaces between the words should have a dotted red underline. - Remove the extra spaces and confirm that the dotted line disappears. --- koha-tmpl/intranet-tmpl/lib/koha/cateditor/marc-mode.js | 4 ++++ koha-tmpl/intranet-tmpl/prog/css/cateditor.css | 4 ++++ 2 files changed, 8 insertions(+) --- a/koha-tmpl/intranet-tmpl/lib/koha/cateditor/marc-mode.js +++ a/koha-tmpl/intranet-tmpl/lib/koha/cateditor/marc-mode.js @@ -130,6 +130,8 @@ CodeMirror.defineMode( 'marc', function( config, modeConfig ) { // matching. if ( stream.match( /[ \t]+$/ ) ) { return 'end-space'; + } else if ( stream.match( /\s{2,}/ ) ) { + return 'double-space'; } else if ( stream.match( /[^ \t‡]+/ ) || stream.match( /[ \t]+/ ) ) { return; } @@ -156,6 +158,8 @@ CodeMirror.defineMode( 'marc', function( config, modeConfig ) { // Match space at end of line if ( stream.match( /[ \t]+$/ ) ) { return 'end-space'; + } else if ( stream.match( /\s{2,}/ ) ) { + return 'double-space'; } else { stream.match( /[ \t]+/ ); } --- a/koha-tmpl/intranet-tmpl/prog/css/cateditor.css +++ a/koha-tmpl/intranet-tmpl/prog/css/cateditor.css @@ -106,6 +106,10 @@ body { background-color: #DDDDBB; } +.cm-double-space { + border-bottom: 2px dotted #CC3333; +} + #editor .modified-line-gutter { width: 10px; } --