@brillout/docpress 0.15.10-commit-36f361e → 0.15.10-commit-af2d9bc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/detypePlugin.ts +1 -1
- package/dist/detypePlugin.js +1 -1
- package/package.json +1 -1
package/detypePlugin.ts
CHANGED
|
@@ -106,7 +106,7 @@ function removeCodeBlockIndent(code: string, codeBlockIndent: string, moduleId:
|
|
|
106
106
|
.split('\n')
|
|
107
107
|
.map((line) => {
|
|
108
108
|
assertUsage(
|
|
109
|
-
line.startsWith(codeBlockIndent),
|
|
109
|
+
line.startsWith(codeBlockIndent.trimEnd()),
|
|
110
110
|
`In ${pc.bold(pc.blue(moduleId))} the line ${pc.bold(line)} must start with ${pc.bold(codeBlockIndent)}`,
|
|
111
111
|
)
|
|
112
112
|
return line.slice(codeBlockIndent.length)
|
package/dist/detypePlugin.js
CHANGED
|
@@ -89,7 +89,7 @@ function removeCodeBlockIndent(code, codeBlockIndent, moduleId) {
|
|
|
89
89
|
return code
|
|
90
90
|
.split('\n')
|
|
91
91
|
.map((line) => {
|
|
92
|
-
assertUsage(line.startsWith(codeBlockIndent), `In ${pc.bold(pc.blue(moduleId))} the line ${pc.bold(line)} must start with ${pc.bold(codeBlockIndent)}`);
|
|
92
|
+
assertUsage(line.startsWith(codeBlockIndent.trimEnd()), `In ${pc.bold(pc.blue(moduleId))} the line ${pc.bold(line)} must start with ${pc.bold(codeBlockIndent)}`);
|
|
93
93
|
return line.slice(codeBlockIndent.length);
|
|
94
94
|
})
|
|
95
95
|
.join('\n');
|