Changeset 35796
- Timestamp:
- 2021-12-10T14:22:20+13:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-interfaces-dev/atea/macron-restoration/src/components/DirectInput.vue
r35772 r35796 8 8 <span v-if="errorState" class="error-text">{{ translations.get('DirectInput_UnknownError') }}</span> 9 9 10 <span class="preserveWhitespace" v-html=" formattedRestored" />10 <span class="preserveWhitespace" v-html="htmlFormattedRestored" /> 11 11 </div> 12 12 … … 113 113 } 114 114 }, 115 formattedRestored() {115 htmlFormattedRestored() { 116 116 let restored = ""; 117 117 … … 135 135 } 136 136 137 return restored; 137 return restored.trim(); 138 }, 139 formattedRestored() { 140 let restored = ""; 141 142 for (const word of this.restored) { 143 if (word.w) { 144 if (word[0] !== "-") { 145 restored += " "; 146 } 147 148 restored += word.w; 149 } 150 151 if (word.linebreaks) { 152 restored += this.normaliseLinebreak(word.linebreaks); 153 } 154 } 155 156 return restored.trim(); 138 157 }, 139 158 ...mapState({
Note:
See TracChangeset
for help on using the changeset viewer.