You've already forked joplin
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:
@ -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 };
|
Reference in New Issue
Block a user