1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Improved UI usability

This commit is contained in:
Laurent Cozic
2017-10-08 23:34:01 +01:00
parent 3704f5be27
commit 1abab26041
8 changed files with 337 additions and 78 deletions

View File

@ -113,4 +113,13 @@ function escapeFilename(s, maxLength = 32) {
return output.substr(0, maxLength);
}
export { removeDiacritics, escapeFilename };
function wrap(text, indent, width) {
const wrap_ = require('word-wrap');
return wrap_(text, {
width: width - indent.length,
indent: indent,
});
}
export { removeDiacritics, escapeFilename, wrap };