File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
packages/vue-native-template-compiler
src/platforms/vue-native/compiler/codegen Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3272,7 +3272,7 @@ var RenderGenerator = /*@__PURE__*/(function (BaseGenerator) {
3272
3272
* @param {Object } ast
3273
3273
*/
3274
3274
RenderGenerator . prototype . genText = function genText ( ast ) {
3275
- var text = transformSpecialNewlines ( ast . text ) ;
3275
+ var text = transformSpecialNewlines ( ast . text ) . replace ( / [ \t \n ] + / g , " " ) ;
3276
3276
return JSON . stringify ( text ) ;
3277
3277
} ;
3278
3278
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ class RenderGenerator extends BaseGenerator {
145
145
* @param {Object } ast
146
146
*/
147
147
genText ( ast ) {
148
- const text = transformSpecialNewlines ( ast . text ) ;
148
+ const text = transformSpecialNewlines ( ast . text ) . replace ( / [ \t \n ] + / g , " " ) ;
149
149
return JSON . stringify ( text ) ;
150
150
}
151
151
You can’t perform that action at this time.
0 commit comments