diff options
author | bobzel <zzzman@gmail.com> | 2023-09-13 15:13:53 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-09-13 15:13:53 -0400 |
commit | 94c62a71d1fc124891115b3bc36f4a565071d3d7 (patch) | |
tree | d1e510804381a18da935609f870acda67a4b3551 /src | |
parent | 65bd18723919b81bda6d2371456c4ba69bcc593f (diff) |
removed leading/trailing spaces from published terms
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/nodes/formattedText/FormattedTextBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx index b60b5a2e3..360dfca04 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -460,7 +460,7 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<FieldViewProps const cfield = ComputedField.WithoutComputed(() => FieldValue(this.dataDoc.title)); if (!(cfield instanceof ComputedField)) { - this.dataDoc.title = prefix + str.substring(0, Math.min(40, str.length)) + (str.length > 40 ? '...' : ''); + this.dataDoc.title = (prefix + str.substring(0, Math.min(40, str.length)) + (str.length > 40 ? '...' : '')).trim(); if (str.startsWith('@') && str.length > 1) { Doc.AddDocToList(Doc.MyPublishedDocs, undefined, this.rootDoc); } |