MCPcopy Create free account
hub / github.com/TruthHun/BookStack / indent

Function indent

static/word2md/mammoth.browser.js:3335–3343  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3333 }
3334
3335 function indent() {
3336 inText = false;
3337 if (!start && insideIndentedElement() && !isInPre()) {
3338 writer._append("\n");
3339 for (var i = 0; i < indentationLevel; i++) {
3340 writer._append(indentation);
3341 }
3342 }
3343 }
3344
3345 function isInPre() {
3346 return _.some(stack, function(tagName) {

Callers 4

openFunction · 0.70
closeFunction · 0.70
selfClosingFunction · 0.70
startTextFunction · 0.70

Calls 2

insideIndentedElementFunction · 0.70
isInPreFunction · 0.70

Tested by

no test coverage detected