You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-21 23:17:42 +02:00
All: Resolves #846: Set resource path to correct relative path so that for example images show up in Markdown viewers
This commit is contained in:
CliClient/tests
ReactNativeClient/lib
@ -86,6 +86,15 @@ function friendlySafeFilename(e, maxLength = null) {
|
||||
}
|
||||
}
|
||||
|
||||
while (output.length) {
|
||||
const c = output[0];
|
||||
if (c === ' ') {
|
||||
output = output.substr(1, output.length - 1);
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!output) return _('Untitled');
|
||||
|
||||
return output.substr(0, maxLength);
|
||||
|
Reference in New Issue
Block a user