3 // limit amount of consecutive white spaces and line breaks adjacent to a given
6 var _br = require('rocambole-linebreak');
7 var _ws = require('rocambole-whitespace');
9 exports.before = limitBefore;
10 function limitBefore(token, typeOrValue) {
11 _br.limitBefore(token, typeOrValue);
12 _ws.limitBefore(token, typeOrValue);
16 exports.after = limitAfter;
17 function limitAfter(token, typeOrValue) {
18 _br.limitAfter(token, typeOrValue);
19 _ws.limitAfter(token, typeOrValue);
23 exports.around = limitAround;
24 function limitAround(token, typeOrValue) {
25 _br.limit(token, typeOrValue);
26 _ws.limit(token, typeOrValue);